#312CA1#312CA1
#312CA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.181 H 275.7°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).
Color values
| HEX | #312CA1 |
|---|---|
| RGB | rgb(49, 44, 161) |
| HSL | hsl(243, 57%, 40%) |
| HSV | hsv(243, 73%, 63%) |
| CMYK | cmyk(69.6%, 72.7%, 0%, 36.9%) |
| CIE-LAB | lab(26.81, 39.92, -62.18) |
| CIE-LCH | lch(26.81, 73.89, 302.70°) |
| OKLab | oklab(38.61% 0.0179 -0.1797) |
| OKLCH | oklch(38.61% 0.181 275.7) |
| XYZ | xyz(8.5982, 5.0268, 34.2284) |
| Luminance | 0.0503 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.11
Indigo Blue
#3A18B1
ΔE00 4.63
Royal
#0C1793
ΔE00 5.59
Cobalt Blue
#030AA7
ΔE00 6.48
Blueberry
#464196
ΔE00 6.63
True Blue
#010FCC
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312CA1 #9CA12C
analogous
#2C62A1 #312CA1 #6B2CA1
triadic
#312CA1 #A1312C #2CA131
tetradic
#312CA1 #A12C62 #9CA12C #2CA16B
square
#312CA1 #A12C62 #9CA12C #2CA16B
split-complementary
#312CA1 #A16B2C #62A12C
monochromatic
#141241 #221F71 #312CA1 #4540CB #7470D8
Accessibility & contrast
On white
10.47
#312CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#312CA1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312CA1
10.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312CA1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312CA1 | 1.00 | 10.47 | 2.01 | 10.47 |
| #FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #312ca1; /* rgb */ color: rgb(49, 44, 161); /* oklch */ color: oklch(38.6% 0.181 275.7);
Tailwind
colors: {
custom: {
50: '#7966be',
500: '#312ca1',
950: '#000000',
},
}SCSS
$custom: #312ca1; $custom-light: #7966be; $custom-dark: #000000;
JSON
{
"hex": "#312ca1",
"rgb": {
"r": 49,
"g": 44,
"b": 161
},
"hsl": {
"h": 242.564,
"s": 57.073,
"l": 40.196
},
"oklch": {
"l": 0.38606,
"c": 0.18058,
"h": 275.7
},
"luminance": 0.05028
}Semantic roles & 50–950 ramp
primary
#312CA1
secondary
#BBBF6A
accent
#E047DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81