#2D31B2#2D31B2
#2D31B2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.198 H 272.2°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2D31B2 |
|---|---|
| RGB | rgb(45, 49, 178) |
| HSL | hsl(238, 60%, 44%) |
| HSV | hsv(238, 75%, 70%) |
| CMYK | cmyk(74.7%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(29.33, 42.32, -68.26) |
| CIE-LCH | lch(29.33, 80.32, 301.80°) |
| OKLab | oklab(40.85% 0.0075 -0.1975) |
| OKLCH | oklch(40.85% 0.198 272.2) |
| XYZ | xyz(10.2137, 5.9678, 42.7245) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.84
Indigo Blue
#3A18B1
ΔE00 5.27
Blue Blue
#2242C7
ΔE00 5.47
Ocean Blue
#4F42B5
ΔE00 5.72
Blue With A Hint Of Purple
#533CC6
ΔE00 6.00
True Blue
#010FCC
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D31B2 #B2AE2D
analogous
#2D73B2 #2D31B2 #6B2DB2
triadic
#2D31B2 #B22D31 #31B22D
tetradic
#2D31B2 #B22D73 #B2AE2D #2DB26B
square
#2D31B2 #B22D73 #B2AE2D #2DB26B
split-complementary
#2D31B2 #B26B2D #73B22D
monochromatic
#141650 #212481 #2D31B2 #4B4FD1 #7C7FDE
Accessibility & contrast
On white
9.57
#2D31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#2D31B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D31B2
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D31B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D31B2 | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2d31b2; /* rgb */ color: rgb(45, 49, 178); /* oklch */ color: oklch(40.9% 0.198 272.2);
Tailwind
colors: {
custom: {
50: '#7b6aca',
500: '#2d31b2',
950: '#000000',
},
}SCSS
$custom: #2d31b2; $custom-light: #7b6aca; $custom-dark: #000000;
JSON
{
"hex": "#2d31b2",
"rgb": {
"r": 45,
"g": 49,
"b": 178
},
"hsl": {
"h": 238.195,
"s": 59.641,
"l": 43.725
},
"oklch": {
"l": 0.40854,
"c": 0.19769,
"h": 272.2
},
"luminance": 0.05969
}Semantic roles & 50–950 ramp
primary
#2D31B2
secondary
#C6C475
accent
#DE45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82