#2A1F9E#2A1F9E
#2A1F9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.191 H 274.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F9E |
|---|---|
| RGB | rgb(42, 31, 158) |
| HSL | hsl(245, 67%, 37%) |
| HSV | hsv(245, 80%, 62%) |
| CMYK | cmyk(73.4%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(23.47, 45.40, -65.88) |
| CIE-LCH | lch(23.47, 80.01, 304.57°) |
| OKLab | oklab(36.03% 0.016 -0.1905) |
| OKLCH | oklch(36.03% 0.191 274.8) |
| XYZ | xyz(7.6143, 3.9401, 32.7004) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.07
Indigo Blue
#3A18B1
ΔE00 3.35
Cobalt Blue
#030AA7
ΔE00 3.70
Royal Blue (survey)
#0504AA
ΔE00 4.17
Ultramarine
#2000B1
ΔE00 4.30
True Blue
#010FCC
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F9E #939E1F
analogous
#1F549E #2A1F9E #6A1F9E
triadic
#2A1F9E #9E2A1F #1F9E2A
tetradic
#2A1F9E #9E1F54 #939E1F #1F9E6A
square
#2A1F9E #9E1F54 #939E1F #1F9E6A
split-complementary
#2A1F9E #9E6A1F #549E1F
monochromatic
#0F0B38 #1C156B #2A1F9E #3829D1 #6559DE
Accessibility & contrast
On white
11.74
#2A1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2A1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F9E
11.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F9E | 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)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a1f9e; /* rgb */ color: rgb(42, 31, 158); /* oklch */ color: oklch(36.0% 0.191 274.8);
Tailwind
colors: {
custom: {
50: '#775ebc',
500: '#2a1f9e',
950: '#000000',
},
}SCSS
$custom: #2a1f9e; $custom-light: #775ebc; $custom-dark: #000000;
JSON
{
"hex": "#2a1f9e",
"rgb": {
"r": 42,
"g": 31,
"b": 158
},
"hsl": {
"h": 245.197,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.36026,
"c": 0.19119,
"h": 274.8
},
"luminance": 0.03941
}Semantic roles & 50–950 ramp
primary
#2A1F9E
secondary
#B9C256
accent
#EA3EDB
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981