#2A1F96#2A1F96
#2A1F96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.182 H 275.7°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F96 |
|---|---|
| RGB | rgb(42, 31, 150) |
| HSL | hsl(246, 66%, 35%) |
| HSV | hsv(246, 79%, 59%) |
| CMYK | cmyk(72%, 79.3%, 0%, 41.2%) |
| CIE-LAB | lab(22.56, 42.85, -62.48) |
| CIE-LCH | lch(22.56, 75.76, 304.44°) |
| OKLab | oklab(35.12% 0.0181 -0.1806) |
| OKLCH | oklch(35.12% 0.182 275.7) |
| XYZ | xyz(6.9480, 3.6736, 29.1912) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.62
Cobalt Blue
#030AA7
ΔE00 4.13
Indigo Blue
#3A18B1
ΔE00 4.33
Royal Blue (survey)
#0504AA
ΔE00 4.65
Ultramarine
#2000B1
ΔE00 5.00
Indigo (survey)
#380282
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F96 #8B961F
analogous
#1F4F96 #2A1F96 #651F96
triadic
#2A1F96 #962A1F #1F962A
tetradic
#2A1F96 #961F4F #8B961F #1F9665
square
#2A1F96 #961F4F #8B961F #1F9665
split-complementary
#2A1F96 #96651F #4F961F
monochromatic
#0E0A31 #1C1563 #2A1F96 #3829C9 #6054DC
Accessibility & contrast
On white
12.11
#2A1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2A1F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F96
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F96 | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a1f96; /* rgb */ color: rgb(42, 31, 150); /* oklch */ color: oklch(35.1% 0.182 275.7);
Tailwind
colors: {
custom: {
50: '#755eb6',
500: '#2a1f96',
950: '#000000',
},
}SCSS
$custom: #2a1f96; $custom-light: #755eb6; $custom-dark: #000000;
JSON
{
"hex": "#2a1f96",
"rgb": {
"r": 42,
"g": 31,
"b": 150
},
"hsl": {
"h": 245.546,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.35122,
"c": 0.18153,
"h": 275.7
},
"luminance": 0.03674
}Semantic roles & 50–950 ramp
primary
#2A1F96
secondary
#B5BF52
accent
#E93FD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980