#2A31A2#2A31A2
#2A31A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.178 H 272.0°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A31A2 |
|---|---|
| RGB | rgb(42, 49, 162) |
| HSL | hsl(237, 59%, 40%) |
| HSV | hsv(237, 74%, 64%) |
| CMYK | cmyk(74.1%, 69.8%, 0%, 36.5%) |
| CIE-LAB | lab(27.56, 36.46, -61.56) |
| CIE-LCH | lch(27.56, 71.55, 300.63°) |
| OKLab | oklab(39.06% 0.0063 -0.1781) |
| OKLCH | oklch(39.06% 0.178 272) |
| XYZ | xyz(8.5725, 5.2966, 34.7460) |
| Luminance | 0.0530 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.51
Blueberry
#464196
ΔE00 5.96
Indigo Blue
#3A18B1
ΔE00 6.12
Royal
#0C1793
ΔE00 6.56
Ocean Blue
#4F42B5
ΔE00 6.68
Blue Blue
#2242C7
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A31A2 #A29B2A
analogous
#2A6DA2 #2A31A2 #5F2AA2
triadic
#2A31A2 #A22A31 #31A22A
tetradic
#2A31A2 #A22A6D #A29B2A #2AA25F
square
#2A31A2 #A22A6D #A29B2A #2AA25F
split-complementary
#2A31A2 #A25F2A #6DA22A
monochromatic
#111441 #1D2271 #2A31A2 #3D45CD #6D73D9
Accessibility & contrast
On white
10.20
#2A31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#2A31A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A31A2
10.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A31A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A31A2 | 1.00 | 10.20 | 2.06 | 10.20 |
| #FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2a31a2; /* rgb */ color: rgb(42, 49, 162); /* oklch */ color: oklch(39.1% 0.178 272.0);
Tailwind
colors: {
custom: {
50: '#766abf',
500: '#2a31a2',
950: '#000000',
},
}SCSS
$custom: #2a31a2; $custom-light: #766abf; $custom-dark: #000000;
JSON
{
"hex": "#2a31a2",
"rgb": {
"r": 42,
"g": 49,
"b": 162
},
"hsl": {
"h": 236.5,
"s": 58.824,
"l": 40
},
"oklch": {
"l": 0.39057,
"c": 0.17818,
"h": 272
},
"luminance": 0.05298
}Semantic roles & 50–950 ramp
primary
#2A31A2
secondary
#C0BB68
accent
#D946E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81