#312FA6#312FA6
#312FA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.184 H 274.8°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).
Color values
| HEX | #312FA6 |
|---|---|
| RGB | rgb(49, 47, 166) |
| HSL | hsl(241, 56%, 42%) |
| HSV | hsv(241, 72%, 65%) |
| CMYK | cmyk(70.5%, 71.7%, 0%, 34.9%) |
| CIE-LAB | lab(27.95, 39.84, -63.33) |
| CIE-LCH | lch(27.95, 74.82, 302.17°) |
| OKLab | oklab(39.57% 0.0152 -0.1831) |
| OKLCH | oklch(39.57% 0.184 274.8) |
| XYZ | xyz(9.1638, 5.4383, 36.6358) |
| Luminance | 0.0544 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.30
Indigo Blue
#3A18B1
ΔE00 4.99
Blueberry
#464196
ΔE00 6.26
Ocean Blue
#4F42B5
ΔE00 6.30
Royal
#0C1793
ΔE00 6.44
True Blue
#010FCC
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312FA6 #A4A62F
analogous
#2F69A6 #312FA6 #6C2FA6
triadic
#312FA6 #A6312F #2FA631
tetradic
#312FA6 #A62F69 #A4A62F #2FA66C
square
#312FA6 #A62F69 #A4A62F #2FA66C
split-complementary
#312FA6 #A66C2F #69A62F
monochromatic
#151447 #232176 #312FA6 #4947CB #7977D8
Accessibility & contrast
On white
10.06
#312FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#312FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312FA6
10.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312FA6 | 1.00 | 10.06 | 2.09 | 10.06 |
| #FFFFFF | 10.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #312fa6; /* rgb */ color: rgb(49, 47, 166); /* oklch */ color: oklch(39.6% 0.184 274.8);
Tailwind
colors: {
custom: {
50: '#7a69c2',
500: '#312fa6',
950: '#000000',
},
}SCSS
$custom: #312fa6; $custom-light: #7a69c2; $custom-dark: #000000;
JSON
{
"hex": "#312fa6",
"rgb": {
"r": 49,
"g": 47,
"b": 166
},
"hsl": {
"h": 241.008,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.39569,
"c": 0.1837,
"h": 274.8
},
"luminance": 0.05439
}Semantic roles & 50–950 ramp
primary
#312FA6
secondary
#BFC170
accent
#DF49DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81