#21127B#21127B
#21127B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.162 H 276.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).
Color values
| HEX | #21127B |
|---|---|
| RGB | rgb(33, 18, 123) |
| HSL | hsl(249, 74%, 28%) |
| HSV | hsv(249, 85%, 48%) |
| CMYK | cmyk(73.2%, 85.4%, 0%, 51.8%) |
| CIE-LAB | lab(16.43, 39.97, -55.69) |
| CIE-LCH | lch(16.43, 68.56, 305.67°) |
| OKLab | oklab(29.75% 0.0184 -0.1609) |
| OKLCH | oklch(29.75% 0.162 276.5) |
| XYZ | xyz(4.4175, 2.1856, 18.9241) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.91
Dark Royal Blue
#02066F
ΔE00 3.42
Navy
#000080
ΔE00 3.47
Deep Blue
#040273
ΔE00 3.49
Royal
#0C1793
ΔE00 3.81
Darkblue
#00008B
ΔE00 3.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21127B #6C7B12
analogous
#12387B #21127B #55127B
triadic
#21127B #7B2112 #127B21
tetradic
#21127B #7B1238 #6C7B12 #127B55
square
#21127B #7B1238 #6C7B12 #127B55
split-complementary
#21127B #7B5512 #387B12
monochromatic
#07041B #130A46 #21127B #2F1AB0 #4228E0
Accessibility & contrast
On white
14.61
#21127B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#21127B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21127B
14.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21127B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21127B | 1.00 | 14.61 | 1.44 | 14.61 |
| #FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #21127b; /* rgb */ color: rgb(33, 18, 123); /* oklch */ color: oklch(29.8% 0.162 276.5);
Tailwind
colors: {
custom: {
50: '#6c54a2',
500: '#21127b',
950: '#000000',
},
}SCSS
$custom: #21127b; $custom-light: #6c54a2; $custom-dark: #000000;
JSON
{
"hex": "#21127b",
"rgb": {
"r": 33,
"g": 18,
"b": 123
},
"hsl": {
"h": 248.571,
"s": 74.468,
"l": 27.647
},
"oklch": {
"l": 0.29752,
"c": 0.162,
"h": 276.5
},
"luminance": 0.02186
}Semantic roles & 50–950 ramp
primary
#21127B
secondary
#A0B138
accent
#F137D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F