#2A31B2#2A31B2
#2A31B2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.198 H 271.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2A31B2 |
|---|---|
| RGB | rgb(42, 49, 178) |
| HSL | hsl(237, 62%, 43%) |
| HSV | hsv(237, 76%, 70%) |
| CMYK | cmyk(76.4%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(29.16, 42.05, -68.54) |
| CIE-LCH | lch(29.16, 80.41, 301.53°) |
| OKLab | oklab(40.69% 0.0042 -0.1984) |
| OKLCH | oklch(40.69% 0.198 271.2) |
| XYZ | xyz(10.0863, 5.9021, 42.7185) |
| Luminance | 0.0590 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.67
Indigo Blue
#3A18B1
ΔE00 5.39
Blue Blue
#2242C7
ΔE00 5.42
Ocean Blue
#4F42B5
ΔE00 5.90
Blue With A Hint Of Purple
#533CC6
ΔE00 6.21
True Blue
#010FCC
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A31B2 #B2AB2A
analogous
#2A75B2 #2A31B2 #672AB2
triadic
#2A31B2 #B22A31 #31B22A
tetradic
#2A31B2 #B22A75 #B2AB2A #2AB267
square
#2A31B2 #B22A75 #B2AB2A #2AB267
split-complementary
#2A31B2 #B2672A #75B22A
monochromatic
#13164F #1E2380 #2A31B2 #464DD3 #777DDF
Accessibility & contrast
On white
9.63
#2A31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#2A31B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A31B2
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A31B2 | 1.00 | 9.63 | 2.18 | 9.63 |
| #FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2a31b2; /* rgb */ color: rgb(42, 49, 178); /* oklch */ color: oklch(40.7% 0.198 271.2);
Tailwind
colors: {
custom: {
50: '#7a6aca',
500: '#2a31b2',
950: '#000000',
},
}SCSS
$custom: #2a31b2; $custom-light: #7a6aca; $custom-dark: #000000;
JSON
{
"hex": "#2a31b2",
"rgb": {
"r": 42,
"g": 49,
"b": 178
},
"hsl": {
"h": 236.912,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.4069,
"c": 0.19847,
"h": 271.2
},
"luminance": 0.05903
}Semantic roles & 50–950 ramp
primary
#2A31B2
secondary
#C7C271
accent
#DD43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82