#312CA6#312CA6
#312CA6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.187 H 275.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).
Color values
| HEX | #312CA6 |
|---|---|
| RGB | rgb(49, 44, 166) |
| HSL | hsl(242, 58%, 41%) |
| HSV | hsv(242, 73%, 65%) |
| CMYK | cmyk(70.5%, 73.5%, 0%, 34.9%) |
| CIE-LAB | lab(27.32, 41.60, -64.37) |
| CIE-LCH | lch(27.32, 76.64, 302.87°) |
| OKLab | oklab(39.12% 0.017 -0.1861) |
| OKLCH | oklch(39.12% 0.187 275.2) |
| XYZ | xyz(9.0480, 5.2067, 36.5972) |
| Luminance | 0.0521 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.98
Indigo Blue
#3A18B1
ΔE00 4.28
Royal
#0C1793
ΔE00 5.87
True Blue
#010FCC
ΔE00 6.28
Cobalt Blue
#030AA7
ΔE00 6.42
Ultramarine
#2000B1
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312CA6 #A1A62C
analogous
#2C64A6 #312CA6 #6E2CA6
triadic
#312CA6 #A6312C #2CA631
tetradic
#312CA6 #A62C64 #A1A62C #2CA66E
square
#312CA6 #A62C64 #A1A62C #2CA66E
split-complementary
#312CA6 #A66E2C #64A62C
monochromatic
#141245 #231F76 #312CA6 #4842CD #7773DA
Accessibility & contrast
On white
10.29
#312CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#312CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312CA6
10.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312CA6 | 1.00 | 10.29 | 2.04 | 10.29 |
| #FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #312ca6; /* rgb */ color: rgb(49, 44, 166); /* oklch */ color: oklch(39.1% 0.187 275.2);
Tailwind
colors: {
custom: {
50: '#7b67c2',
500: '#312ca6',
950: '#000000',
},
}SCSS
$custom: #312ca6; $custom-light: #7b67c2; $custom-dark: #000000;
JSON
{
"hex": "#312ca6",
"rgb": {
"r": 49,
"g": 44,
"b": 166
},
"hsl": {
"h": 242.459,
"s": 58.095,
"l": 41.176
},
"oklch": {
"l": 0.39117,
"c": 0.18688,
"h": 275.2
},
"luminance": 0.05208
}Semantic roles & 50–950 ramp
primary
#312CA6
secondary
#BEC16D
accent
#E146DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81