#312FB3#312FB3
#312FB3 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.9% C 0.200 H 273.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).
Color values
| HEX | #312FB3 |
|---|---|
| RGB | rgb(49, 47, 179) |
| HSL | hsl(241, 58%, 44%) |
| HSV | hsv(241, 74%, 70%) |
| CMYK | cmyk(72.6%, 73.7%, 0%, 29.8%) |
| CIE-LAB | lab(29.26, 44.20, -68.97) |
| CIE-LCH | lch(29.26, 81.91, 302.65°) |
| OKLab | oklab(40.9% 0.013 -0.1995) |
| OKLCH | oklch(40.9% 0.2 273.7) |
| XYZ | xyz(10.4171, 5.9396, 43.2366) |
| Luminance | 0.0594 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.56
Indigo Blue
#3A18B1
ΔE00 4.62
True Blue
#010FCC
ΔE00 5.79
Ocean Blue
#4F42B5
ΔE00 5.80
Blue With A Hint Of Purple
#533CC6
ΔE00 5.82
Blue Blue
#2242C7
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312FB3 #B1B32F
analogous
#2F6FB3 #312FB3 #732FB3
triadic
#312FB3 #B3312F #2FB331
tetradic
#312FB3 #B32F6F #B1B32F #2FB373
square
#312FB3 #B32F6F #B1B32F #2FB373
split-complementary
#312FB3 #B3732F #6FB32F
monochromatic
#161652 #242283 #312FB3 #514FD1 #807FDD
Accessibility & contrast
On white
9.60
#312FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#312FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312FB3
9.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312FB3 | 1.00 | 9.60 | 2.19 | 9.60 |
| #FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #312fb3; /* rgb */ color: rgb(49, 47, 179); /* oklch */ color: oklch(40.9% 0.200 273.7);
Tailwind
colors: {
custom: {
50: '#7d69cb',
500: '#312fb3',
950: '#000000',
},
}SCSS
$custom: #312fb3; $custom-light: #7d69cb; $custom-dark: #000000;
JSON
{
"hex": "#312fb3",
"rgb": {
"r": 49,
"g": 47,
"b": 179
},
"hsl": {
"h": 240.909,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.40898,
"c": 0.19992,
"h": 273.7
},
"luminance": 0.05941
}Semantic roles & 50–950 ramp
primary
#312FB3
secondary
#C5C678
accent
#E246DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82