#2A218E#2A218E
#2A218E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.170 H 276.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2A218E |
|---|---|
| RGB | rgb(42, 33, 142) |
| HSL | hsl(245, 62%, 34%) |
| HSV | hsv(245, 77%, 56%) |
| CMYK | cmyk(70.4%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(22.06, 39.14, -58.35) |
| CIE-LCH | lch(22.06, 70.26, 303.86°) |
| OKLab | oklab(34.51% 0.019 -0.1686) |
| OKLCH | oklch(34.51% 0.17 276.4) |
| XYZ | xyz(6.3796, 3.5324, 25.9316) |
| Luminance | 0.0353 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.94
Midnight Blue
#191970
ΔE00 5.09
Cobalt Blue
#030AA7
ΔE00 5.17
Indigo Blue
#3A18B1
ΔE00 5.53
Royal Blue (survey)
#0504AA
ΔE00 5.71
Indigo (survey)
#380282
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A218E #858E21
analogous
#214F8E #2A218E #61218E
triadic
#2A218E #8E2A21 #218E2A
tetradic
#2A218E #8E214F #858E21 #218E61
square
#2A218E #8E214F #858E21 #218E61
split-complementary
#2A218E #8E6121 #4F8E21
monochromatic
#0D0A2B #1B155C #2A218E #392DC0 #5D52D7
Accessibility & contrast
On white
12.31
#2A218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2A218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A218E
12.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A218E | 1.00 | 12.31 | 1.71 | 12.31 |
| #FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a218e; /* rgb */ color: rgb(42, 33, 142); /* oklch */ color: oklch(34.5% 0.170 276.4);
Tailwind
colors: {
custom: {
50: '#735eb0',
500: '#2a218e',
950: '#000000',
},
}SCSS
$custom: #2a218e; $custom-light: #735eb0; $custom-dark: #000000;
JSON
{
"hex": "#2a218e",
"rgb": {
"r": 42,
"g": 33,
"b": 142
},
"hsl": {
"h": 244.954,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.34509,
"c": 0.1697,
"h": 276.4
},
"luminance": 0.03533
}Semantic roles & 50–950 ramp
primary
#2A218E
secondary
#B2BA50
accent
#E542D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980