#1F2189#1F2189
#1F2189 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.166 H 272.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2189 |
|---|---|
| RGB | rgb(31, 33, 137) |
| HSL | hsl(239, 63%, 33%) |
| HSV | hsv(239, 77%, 54%) |
| CMYK | cmyk(77.4%, 75.9%, 0%, 46.3%) |
| CIE-LAB | lab(20.77, 36.34, -57.39) |
| CIE-LCH | lch(20.77, 67.92, 302.34°) |
| OKLab | oklab(33.24% 0.0058 -0.1661) |
| OKLCH | oklch(33.24% 0.166 272) |
| XYZ | xyz(5.6228, 3.1846, 23.9804) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.82
Midnight Blue
#191970
ΔE00 4.13
Cobalt Blue
#030AA7
ΔE00 5.64
Darkblue
#00008B
ΔE00 5.96
Royal Blue (survey)
#0504AA
ΔE00 6.24
Navy
#000080
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2189 #89871F
analogous
#1F5689 #1F2189 #521F89
triadic
#1F2189 #891F21 #21891F
tetradic
#1F2189 #891F56 #89871F #1F8952
square
#1F2189 #891F56 #89871F #1F8952
split-complementary
#1F2189 #89521F #56891F
monochromatic
#080925 #141557 #1F2189 #2A2DBB #4C4FD6
Accessibility & contrast
On white
12.83
#1F2189 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#1F2189 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2189
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2189 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2189 | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2189; /* rgb */ color: rgb(31, 33, 137); /* oklch */ color: oklch(33.2% 0.166 272.0);
Tailwind
colors: {
custom: {
50: '#6e5dad',
500: '#1f2189',
950: '#000000',
},
}SCSS
$custom: #1f2189; $custom-light: #6e5dad; $custom-dark: #000000;
JSON
{
"hex": "#1f2189",
"rgb": {
"r": 31,
"g": 33,
"b": 137
},
"hsl": {
"h": 238.868,
"s": 63.095,
"l": 32.941
},
"oklch": {
"l": 0.33235,
"c": 0.16621,
"h": 272
},
"luminance": 0.03185
}Semantic roles & 50–950 ramp
primary
#1F2189
secondary
#B9B74B
accent
#E342E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F