#2A216E#2A216E
#2A216E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.127 H 281.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A216E |
|---|---|
| RGB | rgb(42, 33, 110) |
| HSL | hsl(247, 54%, 28%) |
| HSV | hsv(247, 70%, 43%) |
| CMYK | cmyk(61.8%, 70%, 0%, 56.9%) |
| CIE-LAB | lab(18.82, 28.23, -43.35) |
| CIE-LCH | lch(18.82, 51.74, 303.07°) |
| OKLab | oklab(31.22% 0.0251 -0.1248) |
| OKLCH | oklch(31.22% 0.127 281.4) |
| XYZ | xyz(4.3123, 2.7054, 15.0438) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.94
Dark Indigo
#1F0954
ΔE00 6.55
Darkblue (survey)
#030764
ΔE00 6.69
Dark Royal Blue
#02066F
ΔE00 6.78
Royal
#0C1793
ΔE00 6.93
Indigo (survey)
#380282
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A216E #656E21
analogous
#213E6E #2A216E #50216E
triadic
#2A216E #6E2A21 #216E2A
tetradic
#2A216E #6E213E #656E21 #216E50
square
#2A216E #6E213E #656E21 #216E50
split-complementary
#2A216E #6E5021 #3E6E21
monochromatic
#090718 #18133F #2A216E #3C2F9D #5243C7
Accessibility & contrast
On white
13.63
#2A216E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2A216E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A216E
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A216E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A216E | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a216e; /* rgb */ color: rgb(42, 33, 110); /* oklch */ color: oklch(31.2% 0.127 281.4);
Tailwind
colors: {
custom: {
50: '#6c5d98',
500: '#2a216e',
950: '#000000',
},
}SCSS
$custom: #2a216e; $custom-light: #6c5d98; $custom-dark: #000000;
JSON
{
"hex": "#2a216e",
"rgb": {
"r": 42,
"g": 33,
"b": 110
},
"hsl": {
"h": 247.013,
"s": 53.846,
"l": 28.039
},
"oklch": {
"l": 0.31218,
"c": 0.1273,
"h": 281.4
},
"luminance": 0.02706
}Semantic roles & 50–950 ramp
primary
#2A216E
secondary
#97A249
accent
#DD4BCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E