#2A319E#2A319E
#2A319E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.173 H 272.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2A319E |
|---|---|
| RGB | rgb(42, 49, 158) |
| HSL | hsl(236, 58%, 39%) |
| HSV | hsv(236, 73%, 62%) |
| CMYK | cmyk(73.4%, 69%, 0%, 38%) |
| CIE-LAB | lab(27.18, 35.03, -59.77) |
| CIE-LCH | lch(27.18, 69.28, 300.37°) |
| OKLab | oklab(38.66% 0.0068 -0.1728) |
| OKLCH | oklch(38.66% 0.173 272.2) |
| XYZ | xyz(8.2226, 5.1567, 32.9031) |
| Luminance | 0.0516 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.77
Blueberry
#464196
ΔE00 5.79
Indigo Blue
#3A18B1
ΔE00 6.44
Darkslateblue
#483D8B
ΔE00 6.44
Royal
#0C1793
ΔE00 6.46
Ocean Blue
#4F42B5
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A319E #9E972A
analogous
#2A6B9E #2A319E #5D2A9E
triadic
#2A319E #9E2A31 #319E2A
tetradic
#2A319E #9E2A6B #9E972A #2A9E5D
square
#2A319E #9E2A6B #9E972A #2A9E5D
split-complementary
#2A319E #9E5D2A #6B9E2A
monochromatic
#10133D #1D226E #2A319E #3A43CB #6B71D8
Accessibility & contrast
On white
10.34
#2A319E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#2A319E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A319E
10.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A319E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A319E | 1.00 | 10.34 | 2.03 | 10.34 |
| #FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2a319e; /* rgb */ color: rgb(42, 49, 158); /* oklch */ color: oklch(38.7% 0.173 272.2);
Tailwind
colors: {
custom: {
50: '#7569bc',
500: '#2a319e',
950: '#000000',
},
}SCSS
$custom: #2a319e; $custom-light: #7569bc; $custom-dark: #000000;
JSON
{
"hex": "#2a319e",
"rgb": {
"r": 42,
"g": 49,
"b": 158
},
"hsl": {
"h": 236.379,
"s": 58,
"l": 39.216
},
"oklch": {
"l": 0.3866,
"c": 0.17296,
"h": 272.2
},
"luminance": 0.05157
}Semantic roles & 50–950 ramp
primary
#2A319E
secondary
#BEB966
accent
#D847E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81