#2A219B#2A219B
#2A219B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.186 H 274.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2A219B |
|---|---|
| RGB | rgb(42, 33, 155) |
| HSL | hsl(244, 65%, 37%) |
| HSV | hsv(244, 79%, 61%) |
| CMYK | cmyk(72.9%, 78.7%, 0%, 39.2%) |
| CIE-LAB | lab(23.49, 43.41, -64.01) |
| CIE-LCH | lch(23.49, 77.34, 304.14°) |
| OKLab | oklab(35.94% 0.0159 -0.1851) |
| OKLCH | oklch(35.94% 0.186 274.9) |
| XYZ | xyz(7.4131, 3.9458, 31.3749) |
| Luminance | 0.0395 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.08
Indigo Blue
#3A18B1
ΔE00 3.86
Cobalt Blue
#030AA7
ΔE00 4.17
Royal Blue (survey)
#0504AA
ΔE00 4.67
Ultramarine
#2000B1
ΔE00 4.88
True Blue
#010FCC
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A219B #929B21
analogous
#21559B #2A219B #67219B
triadic
#2A219B #9B2A21 #219B2A
tetradic
#2A219B #9B2155 #929B21 #219B67
square
#2A219B #9B2155 #929B21 #219B67
split-complementary
#2A219B #9B6721 #559B21
monochromatic
#0F0C36 #1C1669 #2A219B #382CCD #645ADC
Accessibility & contrast
On white
11.74
#2A219B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2A219B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A219B
11.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A219B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A219B | 1.00 | 11.74 | 1.79 | 11.74 |
| #FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a219b; /* rgb */ color: rgb(42, 33, 155); /* oklch */ color: oklch(35.9% 0.186 274.9);
Tailwind
colors: {
custom: {
50: '#765fba',
500: '#2a219b',
950: '#000000',
},
}SCSS
$custom: #2a219b; $custom-light: #765fba; $custom-dark: #000000;
JSON
{
"hex": "#2a219b",
"rgb": {
"r": 42,
"g": 33,
"b": 155
},
"hsl": {
"h": 244.426,
"s": 64.894,
"l": 36.863
},
"oklch": {
"l": 0.35939,
"c": 0.1858,
"h": 274.9
},
"luminance": 0.03947
}Semantic roles & 50–950 ramp
primary
#2A219B
secondary
#B8C058
accent
#E840DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981