#1F187E#1F187E
#1F187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.161 H 274.3°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).
Color values
| HEX | #1F187E |
|---|---|
| RGB | rgb(31, 24, 126) |
| HSL | hsl(244, 68%, 29%) |
| HSV | hsv(244, 81%, 49%) |
| CMYK | cmyk(75.4%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(17.69, 37.72, -55.53) |
| CIE-LCH | lch(17.69, 67.13, 304.19°) |
| OKLab | oklab(30.69% 0.0122 -0.1606) |
| OKLCH | oklch(30.69% 0.161 274.3) |
| XYZ | xyz(4.6564, 2.4505, 19.9622) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.47
Royal
#0C1793
ΔE00 3.20
Dark Royal Blue
#02066F
ΔE00 4.32
Navy
#000080
ΔE00 4.39
Darkblue
#00008B
ΔE00 4.48
Deep Blue
#040273
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F187E #777E18
analogous
#18447E #1F187E #52187E
triadic
#1F187E #7E1F18 #187E1F
tetradic
#1F187E #7E1844 #777E18 #187E52
square
#1F187E #7E1844 #777E18 #187E52
split-complementary
#1F187E #7E5218 #447E18
monochromatic
#06051A #120E4B #1F187E #2C22B1 #4337D9
Accessibility & contrast
On white
14.09
#1F187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#1F187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F187E
14.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F187E | 1.00 | 14.09 | 1.49 | 14.09 |
| #FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #1f187e; /* rgb */ color: rgb(31, 24, 126); /* oklch */ color: oklch(30.7% 0.161 274.3);
Tailwind
colors: {
custom: {
50: '#6c57a5',
500: '#1f187e',
950: '#000000',
},
}SCSS
$custom: #1f187e; $custom-light: #6c57a5; $custom-dark: #000000;
JSON
{
"hex": "#1f187e",
"rgb": {
"r": 31,
"g": 24,
"b": 126
},
"hsl": {
"h": 244.118,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30694,
"c": 0.16106,
"h": 274.3
},
"luminance": 0.02451
}Semantic roles & 50–950 ramp
primary
#1F187E
secondary
#ABB23F
accent
#EB3DDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F