#1F297D#1F297D
#1F297D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.141 H 271.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).
Color values
| HEX | #1F297D |
|---|---|
| RGB | rgb(31, 41, 125) |
| HSL | hsl(234, 60%, 31%) |
| HSV | hsv(234, 75%, 49%) |
| CMYK | cmyk(75.2%, 67.2%, 0%, 51%) |
| CIE-LAB | lab(21.42, 26.77, -48.75) |
| CIE-LCH | lch(21.42, 55.62, 298.78°) |
| OKLab | oklab(33.33% 0.0027 -0.1409) |
| OKLCH | oklch(33.33% 0.141 271.1) |
| XYZ | xyz(5.0584, 3.3573, 19.7795) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.58
Royal
#0C1793
ΔE00 6.08
Marine
#042E60
ΔE00 7.46
Sapphire (survey)
#2138AB
ΔE00 7.49
Darkslateblue
#483D8B
ΔE00 7.64
Blueberry
#464196
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F297D #7D731F
analogous
#1F587D #1F297D #441F7D
triadic
#1F297D #7D1F29 #297D1F
tetradic
#1F297D #7D1F58 #7D731F #1F7D44
square
#1F297D #7D1F58 #7D731F #1F7D44
split-complementary
#1F297D #7D441F #587D1F
monochromatic
#07091B #13194C #1F297D #2B39AE #4554D1
Accessibility & contrast
On white
12.56
#1F297D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#1F297D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F297D
12.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F297D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F297D | 1.00 | 12.56 | 1.67 | 12.56 |
| #FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f297d; /* rgb */ color: rgb(31, 41, 125); /* oklch */ color: oklch(33.3% 0.141 271.1);
Tailwind
colors: {
custom: {
50: '#6a62a3',
500: '#1f297d',
950: '#000000',
},
}SCSS
$custom: #1f297d; $custom-light: #6a62a3; $custom-dark: #000000;
JSON
{
"hex": "#1f297d",
"rgb": {
"r": 31,
"g": 41,
"b": 125
},
"hsl": {
"h": 233.617,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.33334,
"c": 0.14093,
"h": 271.1
},
"luminance": 0.03358
}Semantic roles & 50–950 ramp
primary
#1F297D
secondary
#B0A548
accent
#D244E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F