#1F2197#1F2197
#1F2197 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.184 H 271.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2197 |
|---|---|
| RGB | rgb(31, 33, 151) |
| HSL | hsl(239, 66%, 36%) |
| HSV | hsv(239, 79%, 59%) |
| CMYK | cmyk(79.5%, 78.1%, 0%, 40.8%) |
| CIE-LAB | lab(22.35, 41.18, -63.47) |
| CIE-LCH | lch(22.35, 75.66, 302.98°) |
| OKLab | oklab(34.82% 0.0032 -0.1838) |
| OKLCH | oklch(34.82% 0.184 271) |
| XYZ | xyz(6.6930, 3.6126, 29.6167) |
| Luminance | 0.0361 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.37
Cobalt Blue
#030AA7
ΔE00 4.25
Royal Blue (survey)
#0504AA
ΔE00 4.84
Indigo Blue
#3A18B1
ΔE00 4.95
Ultramarine
#2000B1
ΔE00 5.41
Darkblue
#00008B
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2197 #97951F
analogous
#1F5D97 #1F2197 #591F97
triadic
#1F2197 #971F21 #21971F
tetradic
#1F2197 #971F5D #97951F #1F9759
square
#1F2197 #971F5D #97951F #1F9759
split-complementary
#1F2197 #97591F #5D971F
monochromatic
#0A0B31 #151664 #1F2197 #292CCA #5457DC
Accessibility & contrast
On white
12.19
#1F2197 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#1F2197 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2197
12.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2197 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2197 | 1.00 | 12.19 | 1.72 | 12.19 |
| #FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2197; /* rgb */ color: rgb(31, 33, 151); /* oklch */ color: oklch(34.8% 0.184 271.0);
Tailwind
colors: {
custom: {
50: '#715eb7',
500: '#1f2197',
950: '#000000',
},
}SCSS
$custom: #1f2197; $custom-light: #715eb7; $custom-dark: #000000;
JSON
{
"hex": "#1f2197",
"rgb": {
"r": 31,
"g": 33,
"b": 151
},
"hsl": {
"h": 239,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.34818,
"c": 0.18381,
"h": 271
},
"luminance": 0.03613
}Semantic roles & 50–950 ramp
primary
#1F2197
secondary
#BFBE52
accent
#E63FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980