#21137E#21137E
#21137E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.165 H 276.0°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).
Color values
| HEX | #21137E |
|---|---|
| RGB | rgb(33, 19, 126) |
| HSL | hsl(248, 74%, 28%) |
| HSV | hsv(248, 85%, 49%) |
| CMYK | cmyk(73.8%, 84.9%, 0%, 50.6%) |
| CIE-LAB | lab(16.96, 40.45, -56.73) |
| CIE-LCH | lch(16.96, 69.67, 305.49°) |
| OKLab | oklab(30.23% 0.0171 -0.164) |
| OKLCH | oklch(30.23% 0.165 276) |
| XYZ | xyz(4.6247, 2.2950, 19.9339) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Royal
#0C1793
ΔE00 3.35
Navy
#000080
ΔE00 3.53
Darkblue
#00008B
ΔE00 3.68
Dark Royal Blue
#02066F
ΔE00 3.76
Deep Blue
#040273
ΔE00 3.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21137E #707E13
analogous
#133B7E #21137E #56137E
triadic
#21137E #7E2113 #137E21
tetradic
#21137E #7E133B #707E13 #137E56
square
#21137E #7E133B #707E13 #137E56
split-complementary
#21137E #7E5613 #3B7E13
monochromatic
#07041B #130B49 #21137E #2F1BB3 #442CDF
Accessibility & contrast
On white
14.39
#21137E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#21137E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21137E
14.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21137E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21137E | 1.00 | 14.39 | 1.46 | 14.39 |
| #FFFFFF | 14.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21137e; /* rgb */ color: rgb(33, 19, 126); /* oklch */ color: oklch(30.2% 0.165 276.0);
Tailwind
colors: {
custom: {
50: '#6d55a5',
500: '#21137e',
950: '#000000',
},
}SCSS
$custom: #21137e; $custom-light: #6d55a5; $custom-dark: #000000;
JSON
{
"hex": "#21137e",
"rgb": {
"r": 33,
"g": 19,
"b": 126
},
"hsl": {
"h": 247.85,
"s": 73.793,
"l": 28.431
},
"oklch": {
"l": 0.30227,
"c": 0.16486,
"h": 276
},
"luminance": 0.02295
}Semantic roles & 50–950 ramp
primary
#21137E
secondary
#A4B439
accent
#F037D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F