#2A1F9D#2A1F9D
#2A1F9D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.190 H 274.9°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F9D |
|---|---|
| RGB | rgb(42, 31, 157) |
| HSL | hsl(245, 67%, 37%) |
| HSV | hsv(245, 80%, 62%) |
| CMYK | cmyk(73.2%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(23.36, 45.09, -65.46) |
| CIE-LCH | lch(23.36, 79.48, 304.56°) |
| OKLab | oklab(35.91% 0.0163 -0.1893) |
| OKLCH | oklch(35.91% 0.19 274.9) |
| XYZ | xyz(7.5286, 3.9058, 32.2489) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.00
Indigo Blue
#3A18B1
ΔE00 3.47
Cobalt Blue
#030AA7
ΔE00 3.74
Royal Blue (survey)
#0504AA
ΔE00 4.21
Ultramarine
#2000B1
ΔE00 4.37
True Blue
#010FCC
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F9D #929D1F
analogous
#1F539D #2A1F9D #691F9D
triadic
#2A1F9D #9D2A1F #1F9D2A
tetradic
#2A1F9D #9D1F53 #929D1F #1F9D69
square
#2A1F9D #9D1F53 #929D1F #1F9D69
split-complementary
#2A1F9D #9D691F #539D1F
monochromatic
#0F0B37 #1C156A #2A1F9D #3829D0 #6458DE
Accessibility & contrast
On white
11.79
#2A1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#2A1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F9D
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F9D | 1.00 | 11.79 | 1.78 | 11.79 |
| #FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2a1f9d; /* rgb */ color: rgb(42, 31, 157); /* oklch */ color: oklch(35.9% 0.190 274.9);
Tailwind
colors: {
custom: {
50: '#775ebb',
500: '#2a1f9d',
950: '#000000',
},
}SCSS
$custom: #2a1f9d; $custom-light: #775ebb; $custom-dark: #000000;
JSON
{
"hex": "#2a1f9d",
"rgb": {
"r": 42,
"g": 31,
"b": 157
},
"hsl": {
"h": 245.238,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.35912,
"c": 0.18999,
"h": 274.9
},
"luminance": 0.03907
}Semantic roles & 50–950 ramp
primary
#2A1F9D
secondary
#B8C256
accent
#EA3EDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981