#21239E#21239E
#21239E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.190 H 271.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).
Color values
| HEX | #21239E |
|---|---|
| RGB | rgb(33, 35, 158) |
| HSL | hsl(239, 65%, 37%) |
| HSV | hsv(239, 79%, 62%) |
| CMYK | cmyk(79.1%, 77.8%, 0%, 38%) |
| CIE-LAB | lab(23.65, 42.58, -65.60) |
| CIE-LCH | lch(23.65, 78.21, 302.98°) |
| OKLab | oklab(36% 0.0034 -0.19) |
| OKLCH | oklch(36% 0.19 271) |
| XYZ | xyz(7.3977, 3.9932, 32.7220) |
| Luminance | 0.0399 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.18
Indigo Blue
#3A18B1
ΔE00 4.26
Cobalt Blue
#030AA7
ΔE00 4.29
Royal Blue (survey)
#0504AA
ΔE00 4.83
Ultramarine
#2000B1
ΔE00 5.16
Sapphire (survey)
#2138AB
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21239E #9E9C21
analogous
#21629E #21239E #5E219E
triadic
#21239E #9E2123 #239E21
tetradic
#21239E #9E2162 #9E9C21 #219E5E
square
#21239E #9E2162 #9E9C21 #219E5E
split-complementary
#21239E #9E5E21 #629E21
monochromatic
#0C0D39 #16186B #21239E #2C2ED1 #5C5EDD
Accessibility & contrast
On white
11.67
#21239E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#21239E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21239E
11.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21239E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21239E | 1.00 | 11.67 | 1.80 | 11.67 |
| #FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA1
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #21239e; /* rgb */ color: rgb(33, 35, 158); /* oklch */ color: oklch(36.0% 0.190 271.0);
Tailwind
colors: {
custom: {
50: '#7460bc',
500: '#21239e',
950: '#000000',
},
}SCSS
$custom: #21239e; $custom-light: #7460bc; $custom-dark: #000000;
JSON
{
"hex": "#21239e",
"rgb": {
"r": 33,
"g": 35,
"b": 158
},
"hsl": {
"h": 239.04,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.36,
"c": 0.18999,
"h": 271
},
"luminance": 0.03994
}Semantic roles & 50–950 ramp
primary
#21239E
secondary
#C1C059
accent
#E63FE8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981