#2A1E99#2A1E99
#2A1E99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.186 H 275.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1E99 |
|---|---|
| RGB | rgb(42, 30, 153) |
| HSL | hsl(246, 67%, 36%) |
| HSV | hsv(246, 80%, 60%) |
| CMYK | cmyk(72.5%, 80.4%, 0%, 40%) |
| CIE-LAB | lab(22.72, 44.33, -64.06) |
| CIE-LCH | lch(22.72, 77.90, 304.68°) |
| OKLab | oklab(35.34% 0.0177 -0.1852) |
| OKLCH | oklch(35.34% 0.186 275.5) |
| XYZ | xyz(7.1670, 3.7200, 30.4711) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.64
Cobalt Blue
#030AA7
ΔE00 3.78
Indigo Blue
#3A18B1
ΔE00 3.89
Royal Blue (survey)
#0504AA
ΔE00 4.27
Ultramarine
#2000B1
ΔE00 4.55
Darkblue
#00008B
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1E99 #8D991E
analogous
#1E4F99 #2A1E99 #671E99
triadic
#2A1E99 #992A1E #1E992A
tetradic
#2A1E99 #991E4F #8D991E #1E9967
square
#2A1E99 #991E4F #8D991E #1E9967
split-complementary
#2A1E99 #99671E #4F991E
monochromatic
#0E0A33 #1C1466 #2A1E99 #3828CC #6154DD
Accessibility & contrast
On white
12.04
#2A1E99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2A1E99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1E99
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1E99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1E99 | 1.00 | 12.04 | 1.74 | 12.04 |
| #FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a1e99; /* rgb */ color: rgb(42, 30, 153); /* oklch */ color: oklch(35.3% 0.186 275.5);
Tailwind
colors: {
custom: {
50: '#765db8',
500: '#2a1e99',
950: '#000000',
},
}SCSS
$custom: #2a1e99; $custom-light: #765db8; $custom-dark: #000000;
JSON
{
"hex": "#2a1e99",
"rgb": {
"r": 42,
"g": 30,
"b": 153
},
"hsl": {
"h": 245.854,
"s": 67.213,
"l": 35.882
},
"oklch": {
"l": 0.35336,
"c": 0.18605,
"h": 275.5
},
"luminance": 0.03721
}Semantic roles & 50–950 ramp
primary
#2A1E99
secondary
#B6C152
accent
#EA3ED9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981