#2D31B3#2D31B3
#2D31B3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.0% C 0.199 H 272.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2D31B3 |
|---|---|
| RGB | rgb(45, 49, 179) |
| HSL | hsl(238, 60%, 44%) |
| HSV | hsv(238, 75%, 70%) |
| CMYK | cmyk(74.9%, 72.6%, 0%, 29.8%) |
| CIE-LAB | lab(29.43, 42.66, -68.69) |
| CIE-LCH | lch(29.43, 80.86, 301.84°) |
| OKLab | oklab(40.96% 0.0073 -0.1988) |
| OKLCH | oklch(40.96% 0.199 272.1) |
| XYZ | xyz(10.3144, 6.0081, 43.2552) |
| Luminance | 0.0601 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.90
Indigo Blue
#3A18B1
ΔE00 5.26
Blue Blue
#2242C7
ΔE00 5.40
Ocean Blue
#4F42B5
ΔE00 5.69
Blue With A Hint Of Purple
#533CC6
ΔE00 5.91
True Blue
#010FCC
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D31B3 #B3AF2D
analogous
#2D74B3 #2D31B3 #6C2DB3
triadic
#2D31B3 #B32D31 #31B32D
tetradic
#2D31B3 #B32D74 #B3AF2D #2DB36C
square
#2D31B3 #B32D74 #B3AF2D #2DB36C
split-complementary
#2D31B3 #B36C2D #74B32D
monochromatic
#141651 #212482 #2D31B3 #4B4FD2 #7C7FDE
Accessibility & contrast
On white
9.54
#2D31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#2D31B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D31B3
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D31B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D31B3 | 1.00 | 9.54 | 2.20 | 9.54 |
| #FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2d31b3; /* rgb */ color: rgb(45, 49, 179); /* oklch */ color: oklch(41.0% 0.199 272.1);
Tailwind
colors: {
custom: {
50: '#7c6acb',
500: '#2d31b3',
950: '#000000',
},
}SCSS
$custom: #2d31b3; $custom-light: #7c6acb; $custom-dark: #000000;
JSON
{
"hex": "#2d31b3",
"rgb": {
"r": 45,
"g": 49,
"b": 179
},
"hsl": {
"h": 238.209,
"s": 59.821,
"l": 43.922
},
"oklch": {
"l": 0.40957,
"c": 0.19894,
"h": 272.1
},
"luminance": 0.06009
}Semantic roles & 50–950 ramp
primary
#2D31B3
secondary
#C7C475
accent
#DE45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82