#2A1F85#2A1F85
#2A1F85 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.160 H 278.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F85 |
|---|---|
| RGB | rgb(42, 31, 133) |
| HSL | hsl(246, 62%, 32%) |
| HSV | hsv(246, 77%, 52%) |
| CMYK | cmyk(68.4%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.69, 37.29, -54.97) |
| CIE-LCH | lch(20.69, 66.42, 304.15°) |
| OKLab | oklab(33.26% 0.0222 -0.1588) |
| OKLCH | oklch(33.26% 0.16 278) |
| XYZ | xyz(5.6771, 3.1652, 22.4975) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.35
Midnight Blue
#191970
ΔE00 3.84
Indigo (survey)
#380282
ΔE00 5.25
Darkblue
#00008B
ΔE00 5.80
Cobalt Blue
#030AA7
ΔE00 5.92
Navy
#000080
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F85 #7A851F
analogous
#1F4785 #2A1F85 #5D1F85
triadic
#2A1F85 #852A1F #1F852A
tetradic
#2A1F85 #851F47 #7A851F #1F855D
square
#2A1F85 #851F47 #7A851F #1F855D
split-complementary
#2A1F85 #855D1F #47851F
monochromatic
#0B0822 #1A1353 #2A1F85 #3A2BB7 #594AD5
Accessibility & contrast
On white
12.86
#2A1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2A1F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F85
12.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F85 | 1.00 | 12.86 | 1.63 | 12.86 |
| #FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2a1f85; /* rgb */ color: rgb(42, 31, 133); /* oklch */ color: oklch(33.3% 0.160 278.0);
Tailwind
colors: {
custom: {
50: '#715daa',
500: '#2a1f85',
950: '#000000',
},
}SCSS
$custom: #2a1f85; $custom-light: #715daa; $custom-dark: #000000;
JSON
{
"hex": "#2a1f85",
"rgb": {
"r": 42,
"g": 31,
"b": 133
},
"hsl": {
"h": 246.471,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.33255,
"c": 0.16033,
"h": 278
},
"luminance": 0.03166
}Semantic roles & 50–950 ramp
primary
#2A1F85
secondary
#ABB749
accent
#E543D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F