#1F216F#1F216F
#1F216F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.131 H 274.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #1F216F |
|---|---|
| RGB | rgb(31, 33, 111) |
| HSL | hsl(239, 56%, 28%) |
| HSV | hsv(239, 72%, 44%) |
| CMYK | cmyk(72.1%, 70.3%, 0%, 56.5%) |
| CIE-LAB | lab(18.04, 26.87, -45.32) |
| CIE-LCH | lch(18.04, 52.69, 300.67°) |
| OKLab | oklab(30.45% 0.0098 -0.1309) |
| OKLCH | oklch(30.45% 0.131 274.3) |
| XYZ | xyz(3.9772, 2.5263, 15.3139) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.34
Darkblue (survey)
#030764
ΔE00 6.40
Dark Royal Blue
#02066F
ΔE00 6.47
Royal
#0C1793
ΔE00 6.48
Dark Indigo
#1F0954
ΔE00 7.10
Deep Blue
#040273
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F216F #6F6D1F
analogous
#1F496F #1F216F #451F6F
triadic
#1F216F #6F1F21 #216F1F
tetradic
#1F216F #6F1F49 #6F6D1F #1F6F45
square
#1F216F #6F1F49 #6F6D1F #1F6F45
split-complementary
#1F216F #6F451F #496F1F
monochromatic
#070718 #12133F #1F216F #2C2F9F #3F42C9
Accessibility & contrast
On white
13.95
#1F216F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#1F216F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F216F
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F216F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F216F | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #1f216f; /* rgb */ color: rgb(31, 33, 111); /* oklch */ color: oklch(30.5% 0.131 274.3);
Tailwind
colors: {
custom: {
50: '#675c99',
500: '#1f216f',
950: '#000000',
},
}SCSS
$custom: #1f216f; $custom-light: #675c99; $custom-dark: #000000;
JSON
{
"hex": "#1f216f",
"rgb": {
"r": 31,
"g": 33,
"b": 111
},
"hsl": {
"h": 238.5,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.30452,
"c": 0.13127,
"h": 274.3
},
"luminance": 0.02527
}Semantic roles & 50–950 ramp
primary
#1F216F
secondary
#A3A147
accent
#DC48E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E