#2B31A2#2B31A2
#2B31A2 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.178 H 272.4°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2B31A2 |
|---|---|
| RGB | rgb(43, 49, 162) |
| HSL | hsl(237, 58%, 40%) |
| HSV | hsv(237, 73%, 64%) |
| CMYK | cmyk(73.5%, 69.8%, 0%, 36.5%) |
| CIE-LAB | lab(27.62, 36.56, -61.46) |
| CIE-LCH | lch(27.62, 71.52, 300.75°) |
| OKLab | oklab(39.12% 0.0074 -0.1778) |
| OKLCH | oklch(39.12% 0.178 272.4) |
| XYZ | xyz(8.6140, 5.3180, 34.7479) |
| Luminance | 0.0532 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.56
Blueberry
#464196
ΔE00 5.91
Indigo Blue
#3A18B1
ΔE00 6.06
Royal
#0C1793
ΔE00 6.57
Ocean Blue
#4F42B5
ΔE00 6.61
Darkslateblue
#483D8B
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B31A2 #A29C2B
analogous
#2B6CA2 #2B31A2 #612BA2
triadic
#2B31A2 #A22B31 #31A22B
tetradic
#2B31A2 #A22B6C #A29C2B #2BA261
square
#2B31A2 #A22B6C #A29C2B #2BA261
split-complementary
#2B31A2 #A2612B #6CA22B
monochromatic
#111441 #1E2272 #2B31A2 #3E45CC #6F74D9
Accessibility & contrast
On white
10.18
#2B31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#2B31A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B31A2
10.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B31A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B31A2 | 1.00 | 10.18 | 2.06 | 10.18 |
| #FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #2b31a2; /* rgb */ color: rgb(43, 49, 162); /* oklch */ color: oklch(39.1% 0.178 272.4);
Tailwind
colors: {
custom: {
50: '#776abf',
500: '#2b31a2',
950: '#000000',
},
}SCSS
$custom: #2b31a2; $custom-light: #776abf; $custom-dark: #000000;
JSON
{
"hex": "#2b31a2",
"rgb": {
"r": 43,
"g": 49,
"b": 162
},
"hsl": {
"h": 236.975,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.39115,
"c": 0.17792,
"h": 272.4
},
"luminance": 0.05319
}Semantic roles & 50–950 ramp
primary
#2B31A2
secondary
#C0BB69
accent
#D947E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81