#2A1B99#2A1B99
#2A1B99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.189 H 275.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1B99 |
|---|---|
| RGB | rgb(42, 27, 153) |
| HSL | hsl(247, 70%, 35%) |
| HSV | hsv(247, 82%, 60%) |
| CMYK | cmyk(72.5%, 82.4%, 0%, 40%) |
| CIE-LAB | lab(22.21, 45.81, -64.90) |
| CIE-LCH | lch(22.21, 79.44, 305.22°) |
| OKLab | oklab(34.98% 0.019 -0.1876) |
| OKLCH | oklch(34.98% 0.189 275.8) |
| XYZ | xyz(7.0947, 3.5753, 30.4470) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.45
Cobalt Blue
#030AA7
ΔE00 3.35
Indigo Blue
#3A18B1
ΔE00 3.80
Royal Blue (survey)
#0504AA
ΔE00 3.82
Ultramarine
#2000B1
ΔE00 4.13
Darkblue
#00008B
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1B99 #8A991B
analogous
#1B4B99 #2A1B99 #691B99
triadic
#2A1B99 #992A1B #1B992A
tetradic
#2A1B99 #991B4B #8A991B #1B9969
square
#2A1B99 #991B4B #8A991B #1B9969
split-complementary
#2A1B99 #99691B #4B991B
monochromatic
#0D0931 #1C1265 #2A1B99 #3824CD #604FE0
Accessibility & contrast
On white
12.24
#2A1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2A1B99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1B99
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1B99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1B99 | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#002F97
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2a1b99; /* rgb */ color: rgb(42, 27, 153); /* oklch */ color: oklch(35.0% 0.189 275.8);
Tailwind
colors: {
custom: {
50: '#765cb8',
500: '#2a1b99',
950: '#000000',
},
}SCSS
$custom: #2a1b99; $custom-light: #765cb8; $custom-dark: #000000;
JSON
{
"hex": "#2a1b99",
"rgb": {
"r": 42,
"g": 27,
"b": 153
},
"hsl": {
"h": 247.143,
"s": 70,
"l": 35.294
},
"oklch": {
"l": 0.34982,
"c": 0.18856,
"h": 275.8
},
"luminance": 0.03576
}Semantic roles & 50–950 ramp
primary
#2A1B99
secondary
#B4C24E
accent
#ED3BD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981