#1F2388#1F2388
#1F2388 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.163 H 271.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2388 |
|---|---|
| RGB | rgb(31, 35, 136) |
| HSL | hsl(238, 63%, 33%) |
| HSV | hsv(238, 77%, 53%) |
| CMYK | cmyk(77.2%, 74.3%, 0%, 46.7%) |
| CIE-LAB | lab(21.10, 34.76, -56.22) |
| CIE-LCH | lch(21.10, 66.10, 301.73°) |
| OKLab | oklab(33.43% 0.005 -0.1627) |
| OKLCH | oklch(33.43% 0.163 271.8) |
| XYZ | xyz(5.6085, 3.2703, 23.6234) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.35
Midnight Blue
#191970
ΔE00 4.19
Cobalt Blue
#030AA7
ΔE00 6.14
Darkblue
#00008B
ΔE00 6.51
Royal Blue (survey)
#0504AA
ΔE00 6.75
Navy
#000080
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2388 #88841F
analogous
#1F5888 #1F2388 #4F1F88
triadic
#1F2388 #881F23 #23881F
tetradic
#1F2388 #881F58 #88841F #1F884F
square
#1F2388 #881F58 #88841F #1F884F
split-complementary
#1F2388 #884F1F #58881F
monochromatic
#080924 #141656 #1F2388 #2A30BA #4B51D6
Accessibility & contrast
On white
12.69
#1F2388 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1F2388 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2388
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2388 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2388 | 1.00 | 12.69 | 1.65 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f2388; /* rgb */ color: rgb(31, 35, 136); /* oklch */ color: oklch(33.4% 0.163 271.8);
Tailwind
colors: {
custom: {
50: '#6d5fac',
500: '#1f2388',
950: '#000000',
},
}SCSS
$custom: #1f2388; $custom-light: #6d5fac; $custom-dark: #000000;
JSON
{
"hex": "#1f2388",
"rgb": {
"r": 31,
"g": 35,
"b": 136
},
"hsl": {
"h": 237.714,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.33435,
"c": 0.1628,
"h": 271.8
},
"luminance": 0.03271
}Semantic roles & 50–950 ramp
primary
#1F2388
secondary
#B9B44A
accent
#E042E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F