#312EA7#312EA7
#312EA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.186 H 274.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).
Color values
| HEX | #312EA7 |
|---|---|
| RGB | rgb(49, 46, 167) |
| HSL | hsl(241, 57%, 42%) |
| HSV | hsv(241, 72%, 65%) |
| CMYK | cmyk(70.7%, 72.5%, 0%, 34.5%) |
| CIE-LAB | lab(27.83, 40.77, -64.12) |
| CIE-LCH | lch(27.83, 75.98, 302.45°) |
| OKLab | oklab(39.52% 0.0157 -0.1854) |
| OKLCH | oklch(39.52% 0.186 274.8) |
| XYZ | xyz(9.2164, 5.3961, 37.1076) |
| Luminance | 0.0540 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.51
Indigo Blue
#3A18B1
ΔE00 4.69
Royal
#0C1793
ΔE00 6.30
Ocean Blue
#4F42B5
ΔE00 6.42
Blueberry
#464196
ΔE00 6.51
True Blue
#010FCC
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312EA7 #A4A72E
analogous
#2E67A7 #312EA7 #6E2EA7
triadic
#312EA7 #A7312E #2EA731
tetradic
#312EA7 #A72E67 #A4A72E #2EA76E
square
#312EA7 #A72E67 #A4A72E #2EA76E
split-complementary
#312EA7 #A76E2E #67A72E
monochromatic
#151447 #232177 #312EA7 #4946CC #7976D9
Accessibility & contrast
On white
10.10
#312EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#312EA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312EA7
10.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312EA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312EA7 | 1.00 | 10.10 | 2.08 | 10.10 |
| #FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #312ea7; /* rgb */ color: rgb(49, 46, 167); /* oklch */ color: oklch(39.5% 0.186 274.8);
Tailwind
colors: {
custom: {
50: '#7b68c2',
500: '#312ea7',
950: '#000000',
},
}SCSS
$custom: #312ea7; $custom-light: #7b68c2; $custom-dark: #000000;
JSON
{
"hex": "#312ea7",
"rgb": {
"r": 49,
"g": 46,
"b": 167
},
"hsl": {
"h": 241.488,
"s": 56.808,
"l": 41.765
},
"oklch": {
"l": 0.39518,
"c": 0.18603,
"h": 274.8
},
"luminance": 0.05397
}Semantic roles & 50–950 ramp
primary
#312EA7
secondary
#BFC170
accent
#E048DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82