#221771#221771
#221771 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.145 H 278.1°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).
Color values
| HEX | #221771 |
|---|---|
| RGB | rgb(34, 23, 113) |
| HSL | hsl(247, 66%, 27%) |
| HSV | hsv(247, 80%, 44%) |
| CMYK | cmyk(69.9%, 79.6%, 0%, 55.7%) |
| CIE-LAB | lab(16.23, 34.21, -49.59) |
| CIE-LCH | lch(16.23, 60.24, 304.60°) |
| OKLab | oklab(29.28% 0.0204 -0.1432) |
| OKLCH | oklch(29.28% 0.145 278.1) |
| XYZ | xyz(3.9458, 2.1448, 15.8256) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.38
Dark Royal Blue
#02066F
ΔE00 3.97
Darkblue (survey)
#030764
ΔE00 4.26
Deep Blue
#040273
ΔE00 4.48
Navy
#000080
ΔE00 5.14
Royal
#0C1793
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221771 #667117
analogous
#173971 #221771 #4F1771
triadic
#221771 #712217 #177122
tetradic
#221771 #711739 #667117 #17714F
square
#221771 #711739 #667117 #17714F
split-complementary
#221771 #714F17 #397117
monochromatic
#080519 #130D3E #221771 #3121A4 #422ED4
Accessibility & contrast
On white
14.70
#221771 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#221771 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221771
14.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221771 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221771 | 1.00 | 14.70 | 1.43 | 14.70 |
| #FFFFFF | 14.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #221771; /* rgb */ color: rgb(34, 23, 113); /* oklch */ color: oklch(29.3% 0.145 278.1);
Tailwind
colors: {
custom: {
50: '#6a569b',
500: '#221771',
950: '#000000',
},
}SCSS
$custom: #221771; $custom-light: #6a569b; $custom-dark: #000000;
JSON
{
"hex": "#221771",
"rgb": {
"r": 34,
"g": 23,
"b": 113
},
"hsl": {
"h": 247.333,
"s": 66.176,
"l": 26.667
},
"oklch": {
"l": 0.29284,
"c": 0.14468,
"h": 278.1
},
"luminance": 0.02145
}Semantic roles & 50–950 ramp
primary
#221771
secondary
#9AA73D
accent
#E93FD4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E