#1F147B#1F147B
#1F147B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.161 H 275.2°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).
Color values
| HEX | #1F147B |
|---|---|
| RGB | rgb(31, 20, 123) |
| HSL | hsl(246, 72%, 28%) |
| HSV | hsv(246, 84%, 48%) |
| CMYK | cmyk(74.8%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(16.61, 38.83, -55.41) |
| CIE-LCH | lch(16.61, 67.66, 305.03°) |
| OKLab | oklab(29.83% 0.0147 -0.1602) |
| OKLCH | oklch(29.83% 0.161 275.2) |
| XYZ | xyz(4.3892, 2.2212, 18.9325) |
| Luminance | 0.0222 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.53
Dark Royal Blue
#02066F
ΔE00 3.54
Royal
#0C1793
ΔE00 3.66
Deep Blue
#040273
ΔE00 3.71
Navy
#000080
ΔE00 3.72
Darkblue
#00008B
ΔE00 4.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F147B #707B14
analogous
#143C7B #1F147B #52147B
triadic
#1F147B #7B1F14 #147B1F
tetradic
#1F147B #7B143C #707B14 #147B52
square
#1F147B #7B143C #707B14 #147B52
split-complementary
#1F147B #7B5214 #3C7B14
monochromatic
#07041A #120B46 #1F147B #2C1DB0 #3F2DDD
Accessibility & contrast
On white
14.54
#1F147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1F147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F147B
14.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F147B | 1.00 | 14.54 | 1.44 | 14.54 |
| #FFFFFF | 14.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f147b; /* rgb */ color: rgb(31, 20, 123); /* oklch */ color: oklch(29.8% 0.161 275.2);
Tailwind
colors: {
custom: {
50: '#6b55a2',
500: '#1f147b',
950: '#000000',
},
}SCSS
$custom: #1f147b; $custom-light: #6b55a2; $custom-dark: #000000;
JSON
{
"hex": "#1f147b",
"rgb": {
"r": 31,
"g": 20,
"b": 123
},
"hsl": {
"h": 246.408,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.29833,
"c": 0.16087,
"h": 275.2
},
"luminance": 0.02222
}Semantic roles & 50–950 ramp
primary
#1F147B
secondary
#A4B13A
accent
#EF39DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F