#2A218C#2A218C
#2A218C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.167 H 276.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).
Color values
| HEX | #2A218C |
|---|---|
| RGB | rgb(42, 33, 140) |
| HSL | hsl(245, 62%, 34%) |
| HSV | hsv(245, 76%, 55%) |
| CMYK | cmyk(70%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(21.85, 38.48, -57.46) |
| CIE-LCH | lch(21.85, 69.15, 303.81°) |
| OKLab | oklab(34.29% 0.0194 -0.166) |
| OKLCH | oklch(34.29% 0.167 276.7) |
| XYZ | xyz(6.2308, 3.4728, 25.1478) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.04
Midnight Blue
#191970
ΔE00 4.82
Cobalt Blue
#030AA7
ΔE00 5.38
Indigo (survey)
#380282
ΔE00 5.74
Indigo Blue
#3A18B1
ΔE00 5.80
Royal Blue (survey)
#0504AA
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A218C #838C21
analogous
#214E8C #2A218C #60218C
triadic
#2A218C #8C2A21 #218C2A
tetradic
#2A218C #8C214E #838C21 #218C60
square
#2A218C #8C214E #838C21 #218C60
split-complementary
#2A218C #8C6021 #4E8C21
monochromatic
#0C0A29 #1B155A #2A218C #392DBE #5D51D6
Accessibility & contrast
On white
12.39
#2A218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2A218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A218C
12.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A218C | 1.00 | 12.39 | 1.69 | 12.39 |
| #FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2a218c; /* rgb */ color: rgb(42, 33, 140); /* oklch */ color: oklch(34.3% 0.167 276.7);
Tailwind
colors: {
custom: {
50: '#735eaf',
500: '#2a218c',
950: '#000000',
},
}SCSS
$custom: #2a218c; $custom-light: #735eaf; $custom-dark: #000000;
JSON
{
"hex": "#2a218c",
"rgb": {
"r": 42,
"g": 33,
"b": 140
},
"hsl": {
"h": 245.047,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.34293,
"c": 0.16717,
"h": 276.7
},
"luminance": 0.03473
}Semantic roles & 50–950 ramp
primary
#2A218C
secondary
#B1B94F
accent
#E543D7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F