#312EA8#312EA8
#312EA8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.187 H 274.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).
Color values
| HEX | #312EA8 |
|---|---|
| RGB | rgb(49, 46, 168) |
| HSL | hsl(241, 57%, 42%) |
| HSV | hsv(241, 73%, 66%) |
| CMYK | cmyk(70.8%, 72.6%, 0%, 34.1%) |
| CIE-LAB | lab(27.93, 41.10, -64.56) |
| CIE-LCH | lch(27.93, 76.53, 302.48°) |
| OKLab | oklab(39.62% 0.0155 -0.1866) |
| OKLCH | oklch(39.62% 0.187 274.7) |
| XYZ | xyz(9.3092, 5.4332, 37.5963) |
| Luminance | 0.0543 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.51
Indigo Blue
#3A18B1
ΔE00 4.64
Royal
#0C1793
ΔE00 6.36
Ocean Blue
#4F42B5
ΔE00 6.37
True Blue
#010FCC
ΔE00 6.43
Blueberry
#464196
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312EA8 #A5A82E
analogous
#2E68A8 #312EA8 #6E2EA8
triadic
#312EA8 #A8312E #2EA831
tetradic
#312EA8 #A82E68 #A5A82E #2EA86E
square
#312EA8 #A82E68 #A5A82E #2EA86E
split-complementary
#312EA8 #A86E2E #68A82E
monochromatic
#151448 #232178 #312EA8 #4A47CD #7977DA
Accessibility & contrast
On white
10.06
#312EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#312EA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312EA8
10.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312EA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312EA8 | 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)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #312ea8; /* rgb */ color: rgb(49, 46, 168); /* oklch */ color: oklch(39.6% 0.187 274.7);
Tailwind
colors: {
custom: {
50: '#7b68c3',
500: '#312ea8',
950: '#000000',
},
}SCSS
$custom: #312ea8; $custom-light: #7b68c3; $custom-dark: #000000;
JSON
{
"hex": "#312ea8",
"rgb": {
"r": 49,
"g": 46,
"b": 168
},
"hsl": {
"h": 241.475,
"s": 57.009,
"l": 41.961
},
"oklch": {
"l": 0.39619,
"c": 0.18729,
"h": 274.7
},
"luminance": 0.05434
}Semantic roles & 50–950 ramp
primary
#312EA8
secondary
#C0C270
accent
#E048DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82