#21138F#21138F
#21138F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.185 H 273.7°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #21138F |
|---|---|
| RGB | rgb(33, 19, 143) |
| HSL | hsl(247, 77%, 32%) |
| HSV | hsv(247, 87%, 56%) |
| CMYK | cmyk(76.9%, 86.7%, 0%, 43.9%) |
| CIE-LAB | lab(19.10, 45.72, -63.89) |
| CIE-LCH | lch(19.10, 78.56, 305.59°) |
| OKLab | oklab(32.32% 0.0119 -0.1847) |
| OKLCH | oklch(32.32% 0.185 273.7) |
| XYZ | xyz(5.8164, 2.7716, 26.2097) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.64
Darkblue
#00008B
ΔE00 3.24
Cobalt Blue
#030AA7
ΔE00 3.36
Royal Blue (survey)
#0504AA
ΔE00 3.81
Indigo (survey)
#380282
ΔE00 4.09
Navy
#000080
ΔE00 4.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21138F #818F13
analogous
#13438F #21138F #5F138F
triadic
#21138F #8F2113 #138F21
tetradic
#21138F #8F1343 #818F13 #138F5F
square
#21138F #8F1343 #818F13 #138F5F
split-complementary
#21138F #8F5F13 #438F13
monochromatic
#080523 #150C59 #21138F #2D1AC5 #4B38E5
Accessibility & contrast
On white
13.51
#21138F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#21138F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21138F
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21138F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21138F | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #21138f; /* rgb */ color: rgb(33, 19, 143); /* oklch */ color: oklch(32.3% 0.185 273.7);
Tailwind
colors: {
custom: {
50: '#7156b1',
500: '#21138f',
950: '#000000',
},
}SCSS
$custom: #21138f; $custom-light: #7156b1; $custom-dark: #000000;
JSON
{
"hex": "#21138f",
"rgb": {
"r": 33,
"g": 19,
"b": 143
},
"hsl": {
"h": 246.774,
"s": 76.543,
"l": 31.765
},
"oklch": {
"l": 0.32315,
"c": 0.1851,
"h": 273.7
},
"luminance": 0.02772
}Semantic roles & 50–950 ramp
primary
#21138F
secondary
#B4C33B
accent
#F335DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880