#312F95#312F95
#312F95 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.162 H 276.3°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).
Color values
| HEX | #312F95 |
|---|---|
| RGB | rgb(49, 47, 149) |
| HSL | hsl(241, 52%, 38%) |
| HSV | hsv(241, 68%, 58%) |
| CMYK | cmyk(67.1%, 68.5%, 0%, 41.6%) |
| CIE-LAB | lab(26.32, 34.00, -55.66) |
| CIE-LCH | lch(26.32, 65.22, 301.42°) |
| OKLab | oklab(37.9% 0.0177 -0.1606) |
| OKLCH | oklch(37.9% 0.162 276.3) |
| XYZ | xyz(7.7062, 4.8553, 28.9590) |
| Luminance | 0.0486 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.30
Blueberry
#464196
ΔE00 5.60
Darkslateblue
#483D8B
ΔE00 5.64
Royal
#0C1793
ΔE00 6.06
Indigo Blue
#3A18B1
ΔE00 6.45
Ocean Blue
#4F42B5
ΔE00 7.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312F95 #93952F
analogous
#2F6095 #312F95 #642F95
triadic
#312F95 #95312F #2F9531
tetradic
#312F95 #952F60 #93952F #2F9564
square
#312F95 #952F60 #93952F #2F9564
split-complementary
#312F95 #95642F #60952F
monochromatic
#121238 #222066 #312F95 #413FC2 #6F6DD1
Accessibility & contrast
On white
10.65
#312F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.97
#312F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312F95
10.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312F95 | 1.00 | 10.65 | 1.97 | 10.65 |
| #FFFFFF | 10.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #312f95; /* rgb */ color: rgb(49, 47, 149); /* oklch */ color: oklch(37.9% 0.162 276.3);
Tailwind
colors: {
custom: {
50: '#7668b5',
500: '#312f95',
950: '#000000',
},
}SCSS
$custom: #312f95; $custom-light: #7668b5; $custom-dark: #000000;
JSON
{
"hex": "#312f95",
"rgb": {
"r": 49,
"g": 47,
"b": 149
},
"hsl": {
"h": 241.176,
"s": 52.041,
"l": 38.431
},
"oklch": {
"l": 0.379,
"c": 0.16159,
"h": 276.3
},
"luminance": 0.04856
}Semantic roles & 50–950 ramp
primary
#312F95
secondary
#B7B867
accent
#DB4CD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80