#1F1A8A#1F1A8A
#1F1A8A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.174 H 272.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1A8A |
|---|---|
| RGB | rgb(31, 26, 138) |
| HSL | hsl(243, 68%, 32%) |
| HSV | hsv(243, 81%, 54%) |
| CMYK | cmyk(77.5%, 81.2%, 0%, 45.9%) |
| CIE-LAB | lab(19.49, 40.65, -60.12) |
| CIE-LCH | lch(19.49, 72.57, 304.06°) |
| OKLab | oklab(32.37% 0.0085 -0.174) |
| OKLCH | oklch(32.37% 0.174 272.8) |
| XYZ | xyz(5.5204, 2.8645, 24.3018) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.70
Midnight Blue
#191970
ΔE00 4.13
Darkblue
#00008B
ΔE00 4.33
Cobalt Blue
#030AA7
ΔE00 4.49
Navy
#000080
ΔE00 4.86
Indigo (survey)
#380282
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1A8A #858A1A
analogous
#1A4D8A #1F1A8A #571A8A
triadic
#1F1A8A #8A1F1A #1A8A1F
tetradic
#1F1A8A #8A1A4D #858A1A #1A8A57
square
#1F1A8A #8A1A4D #858A1A #1A8A57
split-complementary
#1F1A8A #8A571A #4D8A1A
monochromatic
#080723 #131057 #1F1A8A #2B24BD #4A43DC
Accessibility & contrast
On white
13.35
#1F1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F1A8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1A8A
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1A8A | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f1a8a; /* rgb */ color: rgb(31, 26, 138); /* oklch */ color: oklch(32.4% 0.174 272.8);
Tailwind
colors: {
custom: {
50: '#6f59ad',
500: '#1f1a8a',
950: '#000000',
},
}SCSS
$custom: #1f1a8a; $custom-light: #6f59ad; $custom-dark: #000000;
JSON
{
"hex": "#1f1a8a",
"rgb": {
"r": 31,
"g": 26,
"b": 138
},
"hsl": {
"h": 242.679,
"s": 68.293,
"l": 32.157
},
"oklch": {
"l": 0.3237,
"c": 0.17419,
"h": 272.8
},
"luminance": 0.02865
}Semantic roles & 50–950 ramp
primary
#1F1A8A
secondary
#B7BD43
accent
#EB3DE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F