#2A217B#2A217B
#2A217B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.145 H 279.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2A217B |
|---|---|
| RGB | rgb(42, 33, 123) |
| HSL | hsl(246, 58%, 31%) |
| HSV | hsv(246, 73%, 48%) |
| CMYK | cmyk(65.9%, 73.2%, 0%, 51.8%) |
| CIE-LAB | lab(20.08, 32.72, -49.65) |
| CIE-LCH | lch(20.08, 59.46, 303.39°) |
| OKLab | oklab(32.51% 0.0229 -0.1432) |
| OKLCH | oklch(32.51% 0.145 279.1) |
| XYZ | xyz(5.0727, 3.0096, 19.0486) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.91
Royal
#0C1793
ΔE00 4.85
Indigo (survey)
#380282
ΔE00 6.10
Dark Royal Blue
#02066F
ΔE00 6.40
Deep Blue
#040273
ΔE00 6.78
Navy
#000080
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A217B #727B21
analogous
#21457B #2A217B #57217B
triadic
#2A217B #7B2A21 #217B2A
tetradic
#2A217B #7B2145 #727B21 #217B57
square
#2A217B #7B2145 #727B21 #217B57
split-complementary
#2A217B #7B5721 #457B21
monochromatic
#09071A #1A144B #2A217B #3A2EAB #5648CE
Accessibility & contrast
On white
13.11
#2A217B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2A217B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A217B
13.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A217B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A217B | 1.00 | 13.11 | 1.60 | 13.11 |
| #FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2a217b; /* rgb */ color: rgb(42, 33, 123); /* oklch */ color: oklch(32.5% 0.145 279.1);
Tailwind
colors: {
custom: {
50: '#6f5da2',
500: '#2a217b',
950: '#000000',
},
}SCSS
$custom: #2a217b; $custom-light: #6f5da2; $custom-dark: #000000;
JSON
{
"hex": "#2a217b",
"rgb": {
"r": 42,
"g": 33,
"b": 123
},
"hsl": {
"h": 246,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.32508,
"c": 0.14506,
"h": 279.1
},
"luminance": 0.0301
}Semantic roles & 50–950 ramp
primary
#2A217B
secondary
#A4AE4A
accent
#E147D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F