#21137F#21137F
#21137F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.166 H 275.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).
Color values
| HEX | #21137F |
|---|---|
| RGB | rgb(33, 19, 127) |
| HSL | hsl(248, 74%, 29%) |
| HSV | hsv(248, 85%, 50%) |
| CMYK | cmyk(74%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(17.09, 40.76, -57.16) |
| CIE-LCH | lch(17.09, 70.21, 305.50°) |
| OKLab | oklab(30.35% 0.0168 -0.1652) |
| OKLCH | oklch(30.35% 0.166 275.8) |
| XYZ | xyz(4.6896, 2.3209, 20.2754) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.22
Midnight Blue
#191970
ΔE00 3.22
Navy
#000080
ΔE00 3.51
Darkblue
#00008B
ΔE00 3.60
Deep Blue
#040273
ΔE00 3.84
Indigo (survey)
#380282
ΔE00 3.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21137F #717F13
analogous
#133B7F #21137F #57137F
triadic
#21137F #7F2113 #137F21
tetradic
#21137F #7F133B #717F13 #137F57
square
#21137F #7F133B #717F13 #137F57
split-complementary
#21137F #7F5713 #3B7F13
monochromatic
#07041B #130B4A #21137F #2F1BB4 #442DE0
Accessibility & contrast
On white
14.34
#21137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#21137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21137F
14.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21137F | 1.00 | 14.34 | 1.46 | 14.34 |
| #FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21137f; /* rgb */ color: rgb(33, 19, 127); /* oklch */ color: oklch(30.3% 0.166 275.8);
Tailwind
colors: {
custom: {
50: '#6d55a5',
500: '#21137f',
950: '#000000',
},
}SCSS
$custom: #21137f; $custom-light: #6d55a5; $custom-dark: #000000;
JSON
{
"hex": "#21137f",
"rgb": {
"r": 33,
"g": 19,
"b": 127
},
"hsl": {
"h": 247.778,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.30349,
"c": 0.16607,
"h": 275.8
},
"luminance": 0.02321
}Semantic roles & 50–950 ramp
primary
#21137F
secondary
#A5B439
accent
#F137D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F