#2A1F83#2A1F83
#2A1F83 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.158 H 278.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2A1F83 |
|---|---|
| RGB | rgb(42, 31, 131) |
| HSL | hsl(247, 62%, 32%) |
| HSV | hsv(247, 76%, 51%) |
| CMYK | cmyk(67.9%, 76.3%, 0%, 48.6%) |
| CIE-LAB | lab(20.48, 36.62, -54.06) |
| CIE-LCH | lch(20.48, 65.30, 304.11°) |
| OKLab | oklab(33.04% 0.0227 -0.1561) |
| OKLCH | oklch(33.04% 0.158 278.3) |
| XYZ | xyz(5.5402, 3.1104, 21.7767) |
| Luminance | 0.0311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.57
Midnight Blue
#191970
ΔE00 3.59
Indigo (survey)
#380282
ΔE00 5.28
Darkblue
#00008B
ΔE00 5.90
Navy
#000080
ΔE00 6.13
Cobalt Blue
#030AA7
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A1F83 #78831F
analogous
#1F4683 #2A1F83 #5C1F83
triadic
#2A1F83 #832A1F #1F832A
tetradic
#2A1F83 #831F46 #78831F #1F835C
square
#2A1F83 #831F46 #78831F #1F835C
split-complementary
#2A1F83 #835C1F #46831F
monochromatic
#0A0820 #1A1352 #2A1F83 #3A2BB4 #5849D4
Accessibility & contrast
On white
12.95
#2A1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2A1F83 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A1F83
12.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A1F83 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A1F83 | 1.00 | 12.95 | 1.62 | 12.95 |
| #FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2a1f83; /* rgb */ color: rgb(42, 31, 131); /* oklch */ color: oklch(33.0% 0.158 278.3);
Tailwind
colors: {
custom: {
50: '#715da8',
500: '#2a1f83',
950: '#000000',
},
}SCSS
$custom: #2a1f83; $custom-light: #715da8; $custom-dark: #000000;
JSON
{
"hex": "#2a1f83",
"rgb": {
"r": 42,
"g": 31,
"b": 131
},
"hsl": {
"h": 246.6,
"s": 61.728,
"l": 31.765
},
"oklch": {
"l": 0.33041,
"c": 0.15777,
"h": 278.3
},
"luminance": 0.03111
}Semantic roles & 50–950 ramp
primary
#2A1F83
secondary
#AAB648
accent
#E543D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F