#312F96#312F96
#312F96 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.163 H 276.2°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #312F96 |
|---|---|
| RGB | rgb(49, 47, 150) |
| HSL | hsl(241, 52%, 39%) |
| HSV | hsv(241, 69%, 59%) |
| CMYK | cmyk(67.3%, 68.7%, 0%, 41.2%) |
| CIE-LAB | lab(26.41, 34.35, -56.12) |
| CIE-LCH | lch(26.41, 65.80, 301.47°) |
| OKLab | oklab(38% 0.0175 -0.162) |
| OKLCH | oklch(38% 0.163 276.2) |
| XYZ | xyz(7.7864, 4.8873, 29.3813) |
| Luminance | 0.0489 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.21
Blueberry
#464196
ΔE00 5.61
Darkslateblue
#483D8B
ΔE00 5.70
Royal
#0C1793
ΔE00 6.05
Indigo Blue
#3A18B1
ΔE00 6.34
Ocean Blue
#4F42B5
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312F96 #94962F
analogous
#2F6096 #312F96 #642F96
triadic
#312F96 #96312F #2F9631
tetradic
#312F96 #962F60 #94962F #2F9664
square
#312F96 #962F60 #94962F #2F9664
split-complementary
#312F96 #96642F #60962F
monochromatic
#131239 #222067 #312F96 #423FC3 #706ED2
Accessibility & contrast
On white
10.62
#312F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#312F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312F96
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312F96 | 1.00 | 10.62 | 1.98 | 10.62 |
| #FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #312f96; /* rgb */ color: rgb(49, 47, 150); /* oklch */ color: oklch(38.0% 0.163 276.2);
Tailwind
colors: {
custom: {
50: '#7768b6',
500: '#312f96',
950: '#000000',
},
}SCSS
$custom: #312f96; $custom-light: #7768b6; $custom-dark: #000000;
JSON
{
"hex": "#312f96",
"rgb": {
"r": 49,
"g": 47,
"b": 150
},
"hsl": {
"h": 241.165,
"s": 52.284,
"l": 38.627
},
"oklch": {
"l": 0.37995,
"c": 0.16293,
"h": 276.2
},
"luminance": 0.04888
}Semantic roles & 50–950 ramp
primary
#312F96
secondary
#B7B968
accent
#DC4CD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80