#1F217C#1F217C
#1F217C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.149 H 273.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #1F217C |
|---|---|
| RGB | rgb(31, 33, 124) |
| HSL | hsl(239, 60%, 30%) |
| HSV | hsv(239, 75%, 49%) |
| CMYK | cmyk(75%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.37, 31.68, -51.49) |
| CIE-LCH | lch(19.37, 60.46, 301.60°) |
| OKLab | oklab(31.81% 0.008 -0.1489) |
| OKLCH | oklch(31.81% 0.149 273.1) |
| XYZ | xyz(4.7458, 2.8338, 19.3617) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.56
Royal
#0C1793
ΔE00 4.41
Dark Royal Blue
#02066F
ΔE00 6.16
Deep Blue
#040273
ΔE00 6.63
Navy
#000080
ΔE00 6.68
Darkblue (survey)
#030764
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F217C #7C7A1F
analogous
#1F4F7C #1F217C #4C1F7C
triadic
#1F217C #7C1F21 #217C1F
tetradic
#1F217C #7C1F4F #7C7A1F #1F7C4C
square
#1F217C #7C1F4F #7C7A1F #1F7C4C
split-complementary
#1F217C #7C4C1F #4F7C1F
monochromatic
#07071A #13144B #1F217C #2B2EAD #4548D0
Accessibility & contrast
On white
13.40
#1F217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#1F217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F217C
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F217C | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #1f217c; /* rgb */ color: rgb(31, 33, 124); /* oklch */ color: oklch(31.8% 0.149 273.1);
Tailwind
colors: {
custom: {
50: '#6a5da3',
500: '#1f217c',
950: '#000000',
},
}SCSS
$custom: #1f217c; $custom-light: #6a5da3; $custom-dark: #000000;
JSON
{
"hex": "#1f217c",
"rgb": {
"r": 31,
"g": 33,
"b": 124
},
"hsl": {
"h": 238.71,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.31813,
"c": 0.14915,
"h": 273.1
},
"luminance": 0.02834
}Semantic roles & 50–950 ramp
primary
#1F217C
secondary
#AFAD48
accent
#E045E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F