#2A1A9B#2A1A9B
#2A1A9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.192 H 275.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1A9B |
|---|---|
| RGB | rgb(42, 26, 155) |
| HSL | hsl(247, 71%, 35%) |
| HSV | hsv(247, 83%, 61%) |
| CMYK | cmyk(72.9%, 83.2%, 0%, 39.2%) |
| CIE-LAB | lab(22.29, 46.89, -66.00) |
| CIE-LCH | lch(22.29, 80.96, 305.39°) |
| OKLab | oklab(35.1% 0.0188 -0.1908) |
| OKLCH | oklch(35.1% 0.192 275.6) |
| XYZ | xyz(7.2387, 3.5969, 31.3168) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.55
Cobalt Blue
#030AA7
ΔE00 3.11
Indigo Blue
#3A18B1
ΔE00 3.54
Royal Blue (survey)
#0504AA
ΔE00 3.55
Ultramarine
#2000B1
ΔE00 3.81
Darkblue
#00008B
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1A9B #8B9B1A
analogous
#1A4A9B #2A1A9B #6A1A9B
triadic
#2A1A9B #9B2A1A #1A9B2A
tetradic
#2A1A9B #9B1A4A #8B9B1A #1A9B6A
square
#2A1A9B #9B1A4A #8B9B1A #1A9B6A
split-complementary
#2A1A9B #9B6A1A #4A9B1A
monochromatic
#0E0832 #1C1167 #2A1A9B #3823CF #604EE1
Accessibility & contrast
On white
12.21
#2A1A9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2A1A9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1A9B
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1A9B | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#002F99
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a1a9b; /* rgb */ color: rgb(42, 26, 155); /* oklch */ color: oklch(35.1% 0.192 275.6);
Tailwind
colors: {
custom: {
50: '#775bba',
500: '#2a1a9b',
950: '#000000',
},
}SCSS
$custom: #2a1a9b; $custom-light: #775bba; $custom-dark: #000000;
JSON
{
"hex": "#2a1a9b",
"rgb": {
"r": 42,
"g": 26,
"b": 155
},
"hsl": {
"h": 247.442,
"s": 71.271,
"l": 35.49
},
"oklch": {
"l": 0.35104,
"c": 0.1917,
"h": 275.6
},
"luminance": 0.03598
}Semantic roles & 50–950 ramp
primary
#2A1A9B
secondary
#B5C44D
accent
#EE3AD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981