#1F2937 Color Details, Palettes & Contrast

All the conversions, harmonies, and accessibility checks you need to design with confidence.

RGB:rgb(31, 41, 55)
HSL:hsl(215, 28%, 17%)
HEX
#1F2937
RGB
31, 41, 55
HSL
215°, 28%, 17%
HSV
215°, 44%, 22%
CMYK
44%, 25%, 0%, 78%

Color Conversion

Generate values across multiple color models in one place.

#1F2937

Tints & shades

Explore how #1F2937 behaves when you mix it with white or black. These swatches are perfect for hover states, shadows, and backgrounds.

Hover to copy any hex value and reuse it across your interface.

Shades

0–100%
0%#1F2937
10%#1C2532
20%#19212C
30%#161D27
40%#131921
50%#10151C
60%#0C1116
70%#090C11
80%#06080B
90%#030406
100%#000000

Tints

0–100%
0%#1F2937
10%#2E3E53
20%#3E526E
30%#4D6689
40%#5C7AA4
50%#7890B3
60%#93A6C2
70%#AEBDD1
80%#C9D3E1
90%#E4E9F0
100%#FFFFFF

Common use cases

  • UI component states (hover, active, disabled)
  • Creating depth with shadows and highlights
  • Building consistent color systems

Design system

Design system tip

These variations form the foundation of a cohesive palette. Export them to keep marketing, product, and engineering aligned.

Export palette

Color harmonies

Build balanced palettes instantly with harmonies generated from #1F2937.

Click any swatch to open its own detail page and keep exploring.

How to use

Pick one dominant color, then let supporting hues act as accents for typography, surfaces, and call-to-action buttons.

Why it matters

Balanced harmonies communicate intent—calm, energetic, premium—without overwhelming your layout.

Complementary

Opposite hues that create impact and bold contrast.

Suggested for

High-impact CTAs, logos, and hero sections

Analogous

Neighboring hues for natural, fluid gradients.

Suggested for

Nature-inspired, calming dashboards

Triadic

Three evenly spaced hues for playful balance.

Suggested for

Playful branding and editorial layouts

Tetradic

Two complementary pairs that deliver rich variety.

Suggested for

Illustrations and marketing experiments

Monochromatic

Lighter and darker siblings inside the same hue family.

Suggested for

Minimalist interfaces and premium UI states

Accessibility contrast

Check how readable #1F2937 is with common text colors so every visitor enjoys a clear experience.

Use AA as the baseline for body copy and AAA for premium accessibility.

Sample text on black text
Text color#000000
Background#1F2937
Contrast ratio1.43:1
WCAG levelFail
Sample text on white text
Text color#FFFFFF
Background#1F2937
Contrast ratio14.68:1
WCAG levelAAA
Recommended text preview
Text color#FFFFFF
Background#1F2937
Contrast ratio14.68:1
WCAG levelAAA

Technical Formats

Advanced color formats used in design systems.

HEX
#1F2937
RGB
rgb(31, 41, 55)
HSL
hsl(215, 27.91%, 16.86%)
HSV
hsv(215.00 43.64% 21.57%)
LAB
lab(16.14 -1.18 -10.57)
LCH
lch(16.14 10.64 263.63)
OKLAB
oklab(0.28 -0.0067 -0.0288)
OKLCH
oklch(0.28 0.0296 256.85)
Display P3
color(display-p3 0.12939981860653532 0.15963980500640154 0.21096694715821013)
CSS Color Level 4
color(srgb 0.12156862745098039 0.1607843137254902 0.21568627450980393)
XYZ
color(xyz-d65 0.0205 0.0215 0.0392)
CMYK
cmyk(43.64% 25.45% 0.00% 78.43%)

Practical Formats

Variables, config files, and code snippets.

CSS Variable
--color-brand-primary: #1F2937;
CSS RGB Variable
--color-brand-primary-rgb: 31, 41, 55;
SCSS Variable
$color-brand-primary: #1F2937;
Tailwind Config
"brand-primary": "#1F2937"
JavaScript
const brandprimary = "#1F2937";
Design Token JSON
{
  "color": {
    "brand-primary": {
      "value": "#1F2937",
      "type": "color"
    }
  }
}
SVG Fill
<rect fill="#1F2937" />
Android XML
<color name="brand_primary">#1F2937</color>
iOS Swift
UIColor(red: 0.122, green: 0.161, blue: 0.216, alpha: 1.0)
HSL CSS Variable
--color-brand-primary-hsl: 215.00 27.91% 16.86%;

Color Analysis

Deep dive into color properties and accessibility.

Closest Color Name
black
Temperature
Cool
Hue Family
Blue
Relative Luminance
0.0215
Saturation Level
Soft
Lightness Level
Very dark

Blindness Simulator

How this color appears under color vision deficiencies.

Protanopia

Red-blind simulation

#272737

Deuteranopia

Green-blind simulation

#262637

Tritanopia

Blue-blind simulation

#1D2B2B

Achromatopsia

No-color simulation

#282828

Creative Aspects

Palettes, gradients, and moods.

Complementary

#1F2937#372D1F

Analogous

#1F3537#1F2937#211F37

Triadic

#1F2937#371F29#29371F

Tetradic

#1F2937#371F35#372D1F#1F3721

Monochromatic

#737D8E#475161#1F2937#0E1825#000000

Tints

#FFFFFF#C1C4C9#878C95#515864#1F2937

Shades

#1F2937#16212E#0E1825#030F1D#000000

Gradient Flow

#1F3337#1C2E38#1F2937#1D2438#1F1F37

Design guidance

Balance

Treat #1F2937 as a highlight. Pair it with neutrals and one supporting hue to avoid visual overload.

Contrast

Test combinations with real content. Higher contrast improves scanning, readability, and conversions.

Harmony

Use lighter tints for surfaces, the base color for primaries, and darker shades for hover or pressed states.

Need another color?

Jump back to the color picker to upload images, generate palettes, and explore new color relationships.

Pick Another Color