#2A31B0#2A31B0
#2A31B0 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.196 H 271.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2A31B0 |
|---|---|
| RGB | rgb(42, 49, 176) |
| HSL | hsl(237, 61%, 43%) |
| HSV | hsv(237, 76%, 69%) |
| CMYK | cmyk(76.1%, 72.2%, 0%, 31%) |
| CIE-LAB | lab(28.96, 41.36, -67.69) |
| CIE-LCH | lch(28.96, 79.32, 301.43°) |
| OKLab | oklab(40.48% 0.0045 -0.1959) |
| OKLCH | oklch(40.48% 0.196 271.3) |
| XYZ | xyz(9.8870, 5.8224, 41.6686) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.56
Indigo Blue
#3A18B1
ΔE00 5.43
Blue Blue
#2242C7
ΔE00 5.55
Ocean Blue
#4F42B5
ΔE00 5.96
Blue With A Hint Of Purple
#533CC6
ΔE00 6.38
True Blue
#010FCC
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A31B0 #B0A92A
analogous
#2A74B0 #2A31B0 #662AB0
triadic
#2A31B0 #B02A31 #31B02A
tetradic
#2A31B0 #B02A74 #B0A92A #2AB066
square
#2A31B0 #B02A74 #B0A92A #2AB066
split-complementary
#2A31B0 #B0662A #74B02A
monochromatic
#12154D #1E237F #2A31B0 #454CD3 #767CDE
Accessibility & contrast
On white
9.70
#2A31B0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#2A31B0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A31B0
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A31B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A31B0 | 1.00 | 9.70 | 2.16 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#003EAE
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2a31b0; /* rgb */ color: rgb(42, 49, 176); /* oklch */ color: oklch(40.5% 0.196 271.3);
Tailwind
colors: {
custom: {
50: '#7a6ac9',
500: '#2a31b0',
950: '#000000',
},
}SCSS
$custom: #2a31b0; $custom-light: #7a6ac9; $custom-dark: #000000;
JSON
{
"hex": "#2a31b0",
"rgb": {
"r": 42,
"g": 49,
"b": 176
},
"hsl": {
"h": 236.866,
"s": 61.468,
"l": 42.745
},
"oklch": {
"l": 0.40482,
"c": 0.19599,
"h": 271.3
},
"luminance": 0.05823
}Semantic roles & 50–950 ramp
primary
#2A31B0
secondary
#C6C170
accent
#DC43E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82