#1F2087#1F2087
#1F2087 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.165 H 272.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2087 |
|---|---|
| RGB | rgb(31, 32, 135) |
| HSL | hsl(239, 63%, 33%) |
| HSV | hsv(239, 77%, 53%) |
| CMYK | cmyk(77%, 76.3%, 0%, 47.1%) |
| CIE-LAB | lab(20.33, 36.23, -56.85) |
| CIE-LCH | lch(20.33, 67.42, 302.51°) |
| OKLab | oklab(32.86% 0.0066 -0.1645) |
| OKLCH | oklch(32.86% 0.165 272.3) |
| XYZ | xyz(5.4533, 3.0730, 23.2227) |
| Luminance | 0.0307 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.82
Midnight Blue
#191970
ΔE00 3.78
Cobalt Blue
#030AA7
ΔE00 5.72
Darkblue
#00008B
ΔE00 5.77
Navy
#000080
ΔE00 6.13
Indigo (survey)
#380282
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2087 #87861F
analogous
#1F5487 #1F2087 #521F87
triadic
#1F2087 #871F20 #20871F
tetradic
#1F2087 #871F54 #87861F #1F8752
square
#1F2087 #871F54 #87861F #1F8752
split-complementary
#1F2087 #87521F #54871F
monochromatic
#080823 #141455 #1F2087 #2A2CB9 #4B4CD6
Accessibility & contrast
On white
13.00
#1F2087 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#1F2087 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2087
13.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2087 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2087 | 1.00 | 13.00 | 1.61 | 13.00 |
| #FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2087; /* rgb */ color: rgb(31, 32, 135); /* oklch */ color: oklch(32.9% 0.165 272.3);
Tailwind
colors: {
custom: {
50: '#6d5dab',
500: '#1f2087',
950: '#000000',
},
}SCSS
$custom: #1f2087; $custom-light: #6d5dab; $custom-dark: #000000;
JSON
{
"hex": "#1f2087",
"rgb": {
"r": 31,
"g": 32,
"b": 135
},
"hsl": {
"h": 239.423,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.3286,
"c": 0.16467,
"h": 272.3
},
"luminance": 0.03074
}Semantic roles & 50–950 ramp
primary
#1F2087
secondary
#B8B74A
accent
#E442E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F