#2A216F#2A216F
#2A216F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.129 H 281.2°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2A216F |
|---|---|
| RGB | rgb(42, 33, 111) |
| HSL | hsl(247, 54%, 28%) |
| HSV | hsv(247, 70%, 44%) |
| CMYK | cmyk(62.2%, 70.3%, 0%, 56.5%) |
| CIE-LAB | lab(18.92, 28.58, -43.85) |
| CIE-LCH | lch(18.92, 52.34, 303.09°) |
| OKLab | oklab(31.31% 0.025 -0.1262) |
| OKLCH | oklch(31.31% 0.129 281.2) |
| XYZ | xyz(4.3670, 2.7273, 15.3322) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.86
Dark Indigo
#1F0954
ΔE00 6.63
Darkblue (survey)
#030764
ΔE00 6.68
Dark Royal Blue
#02066F
ΔE00 6.72
Royal
#0C1793
ΔE00 6.76
Indigo (survey)
#380282
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A216F #666F21
analogous
#213F6F #2A216F #51216F
triadic
#2A216F #6F2A21 #216F2A
tetradic
#2A216F #6F213F #666F21 #216F51
square
#2A216F #6F213F #666F21 #216F51
split-complementary
#2A216F #6F5121 #3F6F21
monochromatic
#090718 #181340 #2A216F #3C2F9E #5243C7
Accessibility & contrast
On white
13.59
#2A216F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2A216F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A216F
13.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A216F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A216F | 1.00 | 13.59 | 1.55 | 13.59 |
| #FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a216f; /* rgb */ color: rgb(42, 33, 111); /* oklch */ color: oklch(31.3% 0.129 281.2);
Tailwind
colors: {
custom: {
50: '#6c5d99',
500: '#2a216f',
950: '#000000',
},
}SCSS
$custom: #2a216f; $custom-light: #6c5d99; $custom-dark: #000000;
JSON
{
"hex": "#2a216f",
"rgb": {
"r": 42,
"g": 33,
"b": 111
},
"hsl": {
"h": 246.923,
"s": 54.167,
"l": 28.235
},
"oklch": {
"l": 0.31314,
"c": 0.12869,
"h": 281.2
},
"luminance": 0.02728
}Semantic roles & 50–950 ramp
primary
#2A216F
secondary
#98A349
accent
#DE4ACD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E