#1F198B#1F198B
#1F198B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.176 H 272.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1F198B |
|---|---|
| RGB | rgb(31, 25, 139) |
| HSL | hsl(243, 70%, 32%) |
| HSV | hsv(243, 82%, 55%) |
| CMYK | cmyk(77.7%, 82%, 0%, 45.5%) |
| CIE-LAB | lab(19.43, 41.50, -60.85) |
| CIE-LCH | lch(19.43, 73.65, 304.29°) |
| OKLab | oklab(32.36% 0.0086 -0.1761) |
| OKLCH | oklch(32.36% 0.176 272.8) |
| XYZ | xyz(5.5713, 2.8501, 24.6776) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.55
Darkblue
#00008B
ΔE00 4.12
Cobalt Blue
#030AA7
ΔE00 4.26
Midnight Blue
#191970
ΔE00 4.31
Navy
#000080
ΔE00 4.71
Royal Blue (survey)
#0504AA
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F198B #858B19
analogous
#194C8B #1F198B #58198B
triadic
#1F198B #8B1F19 #198B1F
tetradic
#1F198B #8B194C #858B19 #198B58
square
#1F198B #8B194C #858B19 #198B58
split-complementary
#1F198B #8B5819 #4C8B19
monochromatic
#080623 #131057 #1F198B #2B22BF #4A41DD
Accessibility & contrast
On white
13.37
#1F198B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F198B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F198B
13.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F198B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F198B | 1.00 | 13.37 | 1.57 | 13.37 |
| #FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f198b; /* rgb */ color: rgb(31, 25, 139); /* oklch */ color: oklch(32.4% 0.176 272.8);
Tailwind
colors: {
custom: {
50: '#6f59ae',
500: '#1f198b',
950: '#000000',
},
}SCSS
$custom: #1f198b; $custom-light: #6f59ae; $custom-dark: #000000;
JSON
{
"hex": "#1f198b",
"rgb": {
"r": 31,
"g": 25,
"b": 139
},
"hsl": {
"h": 243.158,
"s": 69.512,
"l": 32.157
},
"oklch": {
"l": 0.32363,
"c": 0.17627,
"h": 272.8
},
"luminance": 0.02851
}Semantic roles & 50–950 ramp
primary
#1F198B
secondary
#B7BE42
accent
#EC3BE3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F