#312CA3#312CA3
#312CA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.183 H 275.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).
Color values
| HEX | #312CA3 |
|---|---|
| RGB | rgb(49, 44, 163) |
| HSL | hsl(243, 57%, 41%) |
| HSV | hsv(243, 73%, 64%) |
| CMYK | cmyk(69.9%, 73%, 0%, 36.1%) |
| CIE-LAB | lab(27.01, 40.59, -63.06) |
| CIE-LCH | lch(27.01, 75.00, 302.77°) |
| OKLab | oklab(38.81% 0.0176 -0.1823) |
| OKLCH | oklch(38.81% 0.183 275.5) |
| XYZ | xyz(8.7760, 5.0979, 35.1647) |
| Luminance | 0.0510 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.05
Indigo Blue
#3A18B1
ΔE00 4.48
Royal
#0C1793
ΔE00 5.69
Cobalt Blue
#030AA7
ΔE00 6.44
True Blue
#010FCC
ΔE00 6.59
Ultramarine
#2000B1
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312CA3 #9EA32C
analogous
#2C62A3 #312CA3 #6C2CA3
triadic
#312CA3 #A3312C #2CA331
tetradic
#312CA3 #A32C62 #9EA32C #2CA36C
square
#312CA3 #A32C62 #9EA32C #2CA36C
split-complementary
#312CA3 #A36C2C #62A32C
monochromatic
#141243 #231F73 #312CA3 #4641CC #7571D9
Accessibility & contrast
On white
10.40
#312CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#312CA3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312CA3
10.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312CA3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312CA3 | 1.00 | 10.40 | 2.02 | 10.40 |
| #FFFFFF | 10.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #312ca3; /* rgb */ color: rgb(49, 44, 163); /* oklch */ color: oklch(38.8% 0.183 275.5);
Tailwind
colors: {
custom: {
50: '#7a67bf',
500: '#312ca3',
950: '#000000',
},
}SCSS
$custom: #312ca3; $custom-light: #7a67bf; $custom-dark: #000000;
JSON
{
"hex": "#312ca3",
"rgb": {
"r": 49,
"g": 44,
"b": 163
},
"hsl": {
"h": 242.521,
"s": 57.488,
"l": 40.588
},
"oklch": {
"l": 0.38809,
"c": 0.1831,
"h": 275.5
},
"luminance": 0.05099
}Semantic roles & 50–950 ramp
primary
#312CA3
secondary
#BCC06B
accent
#E147DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81