#22127F#22127F
#22127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.167 H 276.4°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).
Color values
| HEX | #22127F |
|---|---|
| RGB | rgb(34, 18, 127) |
| HSL | hsl(249, 75%, 28%) |
| HSV | hsv(249, 86%, 50%) |
| CMYK | cmyk(73.2%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(17.01, 41.31, -57.29) |
| CIE-LCH | lch(17.01, 70.63, 305.79°) |
| OKLab | oklab(30.32% 0.0187 -0.1655) |
| OKLCH | oklch(30.32% 0.167 276.4) |
| XYZ | xyz(4.7055, 2.3046, 20.2714) |
| Luminance | 0.0231 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.31
Midnight Blue
#191970
ΔE00 3.38
Navy
#000080
ΔE00 3.41
Darkblue
#00008B
ΔE00 3.51
Indigo (survey)
#380282
ΔE00 3.62
Deep Blue
#040273
ΔE00 3.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22127F #6F7F12
analogous
#12387F #22127F #58127F
triadic
#22127F #7F2212 #127F22
tetradic
#22127F #7F1238 #6F7F12 #127F58
square
#22127F #7F1238 #6F7F12 #127F58
split-complementary
#22127F #7F5812 #387F12
monochromatic
#07041B #140A49 #22127F #301AB5 #452BE1
Accessibility & contrast
On white
14.37
#22127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#22127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22127F
14.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22127F | 1.00 | 14.37 | 1.46 | 14.37 |
| #FFFFFF | 14.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #22127f; /* rgb */ color: rgb(34, 18, 127); /* oklch */ color: oklch(30.3% 0.167 276.4);
Tailwind
colors: {
custom: {
50: '#6e54a5',
500: '#22127f',
950: '#000000',
},
}SCSS
$custom: #22127f; $custom-light: #6e54a5; $custom-dark: #000000;
JSON
{
"hex": "#22127f",
"rgb": {
"r": 34,
"g": 18,
"b": 127
},
"hsl": {
"h": 248.807,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.30315,
"c": 0.1666,
"h": 276.4
},
"luminance": 0.02305
}Semantic roles & 50–950 ramp
primary
#22127F
secondary
#A2B538
accent
#F236D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F