#1F2186#1F2186
#1F2186 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.162 H 272.2°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2186 |
|---|---|
| RGB | rgb(31, 33, 134) |
| HSL | hsl(239, 62%, 32%) |
| HSV | hsv(239, 77%, 53%) |
| CMYK | cmyk(76.9%, 75.4%, 0%, 47.5%) |
| CIE-LAB | lab(20.44, 35.28, -56.05) |
| CIE-LCH | lch(20.44, 66.23, 302.19°) |
| OKLab | oklab(32.9% 0.0063 -0.1622) |
| OKLCH | oklch(32.9% 0.162 272.2) |
| XYZ | xyz(5.4106, 3.0997, 22.8628) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.12
Midnight Blue
#191970
ΔE00 3.73
Cobalt Blue
#030AA7
ΔE00 6.02
Darkblue
#00008B
ΔE00 6.07
Navy
#000080
ΔE00 6.38
Indigo (survey)
#380282
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2186 #86841F
analogous
#1F5586 #1F2186 #511F86
triadic
#1F2186 #861F21 #21861F
tetradic
#1F2186 #861F55 #86841F #1F8651
square
#1F2186 #861F55 #86841F #1F8651
split-complementary
#1F2186 #86511F #55861F
monochromatic
#080923 #141554 #1F2186 #2A2DB8 #4A4DD5
Accessibility & contrast
On white
12.96
#1F2186 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#1F2186 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2186
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2186 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2186 | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #1f2186; /* rgb */ color: rgb(31, 33, 134); /* oklch */ color: oklch(32.9% 0.162 272.2);
Tailwind
colors: {
custom: {
50: '#6d5daa',
500: '#1f2186',
950: '#000000',
},
}SCSS
$custom: #1f2186; $custom-light: #6d5daa; $custom-dark: #000000;
JSON
{
"hex": "#1f2186",
"rgb": {
"r": 31,
"g": 33,
"b": 134
},
"hsl": {
"h": 238.835,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.32902,
"c": 0.16233,
"h": 272.2
},
"luminance": 0.031
}Semantic roles & 50–950 ramp
primary
#1F2186
secondary
#B8B649
accent
#E242E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F