#3A31B6#3A31B6
#3A31B6 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 42.1% C 0.199 H 276.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).
Color values
| HEX | #3A31B6 |
|---|---|
| RGB | rgb(58, 49, 182) |
| HSL | hsl(244, 58%, 45%) |
| HSV | hsv(244, 73%, 71%) |
| CMYK | cmyk(68.1%, 73.1%, 0%, 28.6%) |
| CIE-LAB | lab(30.57, 44.99, -68.57) |
| CIE-LCH | lch(30.57, 82.01, 303.27°) |
| OKLab | oklab(42.08% 0.0226 -0.1981) |
| OKLCH | oklch(42.08% 0.199 276.5) |
| XYZ | xyz(11.2840, 6.4726, 44.9016) |
| Luminance | 0.0647 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.08
Blue With A Hint Of Purple
#533CC6
ΔE00 4.71
Ocean Blue
#4F42B5
ΔE00 4.88
Indigo Blue
#3A18B1
ΔE00 4.90
Blurple
#5539CC
ΔE00 5.06
Blue Blue
#2242C7
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A31B6 #ADB631
analogous
#316BB6 #3A31B6 #7C31B6
triadic
#3A31B6 #B63A31 #31B63A
tetradic
#3A31B6 #B6316B #ADB631 #31B67C
square
#3A31B6 #B6316B #ADB631 #31B67C
split-complementary
#3A31B6 #B67C31 #6BB631
monochromatic
#1B1756 #2B2486 #3A31B6 #5C53D1 #8A84DE
Accessibility & contrast
On white
9.15
#3A31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#3A31B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A31B6
9.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A31B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A31B6 | 1.00 | 9.15 | 2.29 | 9.15 |
| #FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0042B4
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #3a31b6; /* rgb */ color: rgb(58, 49, 182); /* oklch */ color: oklch(42.1% 0.199 276.5);
Tailwind
colors: {
custom: {
50: '#816bcd',
500: '#3a31b6',
950: '#000000',
},
}SCSS
$custom: #3a31b6; $custom-light: #816bcd; $custom-dark: #000000;
JSON
{
"hex": "#3a31b6",
"rgb": {
"r": 58,
"g": 49,
"b": 182
},
"hsl": {
"h": 244.06,
"s": 57.576,
"l": 45.294
},
"oklch": {
"l": 0.42083,
"c": 0.1994,
"h": 276.5
},
"luminance": 0.06474
}Semantic roles & 50–950 ramp
primary
#3A31B6
secondary
#C2C77C
accent
#E147D6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82