#1F297F#1F297F
#1F297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.144 H 271.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1F297F |
|---|---|
| RGB | rgb(31, 41, 127) |
| HSL | hsl(234, 61%, 31%) |
| HSV | hsv(234, 76%, 50%) |
| CMYK | cmyk(75.6%, 67.7%, 0%, 50.2%) |
| CIE-LAB | lab(21.61, 27.54, -49.70) |
| CIE-LCH | lch(21.61, 56.82, 298.99°) |
| OKLab | oklab(33.53% 0.0025 -0.1437) |
| OKLCH | oklch(33.53% 0.144 271) |
| XYZ | xyz(5.1875, 3.4090, 20.4592) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.64
Royal
#0C1793
ΔE00 5.83
Sapphire (survey)
#2138AB
ΔE00 7.23
Darkslateblue
#483D8B
ΔE00 7.60
Marine
#042E60
ΔE00 7.70
Blueberry
#464196
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F297F #7F751F
analogous
#1F597F #1F297F #451F7F
triadic
#1F297F #7F1F29 #297F1F
tetradic
#1F297F #7F1F59 #7F751F #1F7F45
square
#1F297F #7F1F59 #7F751F #1F7F45
split-complementary
#1F297F #7F451F #597F1F
monochromatic
#07091D #13194E #1F297F #2B39B0 #4655D2
Accessibility & contrast
On white
12.49
#1F297F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#1F297F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F297F
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F297F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F297F | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f297f; /* rgb */ color: rgb(31, 41, 127); /* oklch */ color: oklch(33.5% 0.144 271.0);
Tailwind
colors: {
custom: {
50: '#6a63a5',
500: '#1f297f',
950: '#000000',
},
}SCSS
$custom: #1f297f; $custom-light: #6a63a5; $custom-dark: #000000;
JSON
{
"hex": "#1f297f",
"rgb": {
"r": 31,
"g": 41,
"b": 127
},
"hsl": {
"h": 233.75,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.33532,
"c": 0.14371,
"h": 271
},
"luminance": 0.03409
}Semantic roles & 50–950 ramp
primary
#1F297F
secondary
#B2A748
accent
#D344E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F