#1F187F#1F187F
#1F187F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.162 H 274.2°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #1F187F |
|---|---|
| RGB | rgb(31, 24, 127) |
| HSL | hsl(244, 68%, 30%) |
| HSV | hsv(244, 81%, 50%) |
| CMYK | cmyk(75.6%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(17.81, 38.06, -55.97) |
| CIE-LCH | lch(17.81, 67.68, 304.22°) |
| OKLab | oklab(30.81% 0.0119 -0.1619) |
| OKLCH | oklch(30.81% 0.162 274.2) |
| XYZ | xyz(4.7212, 2.4764, 20.3037) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Royal
#0C1793
ΔE00 3.05
Navy
#000080
ΔE00 4.36
Dark Royal Blue
#02066F
ΔE00 4.39
Darkblue
#00008B
ΔE00 4.40
Deep Blue
#040273
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F187F #787F18
analogous
#18447F #1F187F #53187F
triadic
#1F187F #7F1F18 #187F1F
tetradic
#1F187F #7F1844 #787F18 #187F53
square
#1F187F #7F1844 #787F18 #187F53
split-complementary
#1F187F #7F5318 #447F18
monochromatic
#06051A #120E4C #1F187F #2C22B2 #4338D9
Accessibility & contrast
On white
14.04
#1F187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#1F187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F187F
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F187F | 1.00 | 14.04 | 1.50 | 14.04 |
| #FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1f187f; /* rgb */ color: rgb(31, 24, 127); /* oklch */ color: oklch(30.8% 0.162 274.2);
Tailwind
colors: {
custom: {
50: '#6c57a5',
500: '#1f187f',
950: '#000000',
},
}SCSS
$custom: #1f187f; $custom-light: #6c57a5; $custom-dark: #000000;
JSON
{
"hex": "#1f187f",
"rgb": {
"r": 31,
"g": 24,
"b": 127
},
"hsl": {
"h": 244.078,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30812,
"c": 0.16232,
"h": 274.2
},
"luminance": 0.02477
}Semantic roles & 50–950 ramp
primary
#1F187F
secondary
#ABB33F
accent
#EB3DDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F