#1F2198#1F2198
#1F2198 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.185 H 270.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2198 |
|---|---|
| RGB | rgb(31, 33, 152) |
| HSL | hsl(239, 66%, 36%) |
| HSV | hsv(239, 80%, 60%) |
| CMYK | cmyk(79.6%, 78.3%, 0%, 40.4%) |
| CIE-LAB | lab(22.46, 41.52, -63.89) |
| CIE-LCH | lch(22.46, 76.20, 303.02°) |
| OKLab | oklab(34.93% 0.003 -0.185) |
| OKLCH | oklch(34.93% 0.185 270.9) |
| XYZ | xyz(6.7745, 3.6453, 30.0462) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.41
Cobalt Blue
#030AA7
ΔE00 4.18
Royal Blue (survey)
#0504AA
ΔE00 4.77
Indigo Blue
#3A18B1
ΔE00 4.84
Ultramarine
#2000B1
ΔE00 5.31
Darkblue
#00008B
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2198 #98961F
analogous
#1F5D98 #1F2198 #591F98
triadic
#1F2198 #981F21 #21981F
tetradic
#1F2198 #981F5D #98961F #1F9859
square
#1F2198 #981F5D #98961F #1F9859
split-complementary
#1F2198 #98591F #5D981F
monochromatic
#0A0B32 #151665 #1F2198 #292CCB #5557DC
Accessibility & contrast
On white
12.14
#1F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#1F2198 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2198
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2198 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2198 | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2198; /* rgb */ color: rgb(31, 33, 152); /* oklch */ color: oklch(34.9% 0.185 270.9);
Tailwind
colors: {
custom: {
50: '#725eb8',
500: '#1f2198',
950: '#000000',
},
}SCSS
$custom: #1f2198; $custom-light: #725eb8; $custom-dark: #000000;
JSON
{
"hex": "#1f2198",
"rgb": {
"r": 31,
"g": 33,
"b": 152
},
"hsl": {
"h": 239.008,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.34933,
"c": 0.18504,
"h": 270.9
},
"luminance": 0.03646
}Semantic roles & 50–950 ramp
primary
#1F2198
secondary
#C0BE53
accent
#E63FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980