#312AA9#312AA9
#312AA9 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.193 H 275.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #312AA9 |
|---|---|
| RGB | rgb(49, 42, 169) |
| HSL | hsl(243, 60%, 41%) |
| HSV | hsv(243, 75%, 66%) |
| CMYK | cmyk(71%, 75.1%, 0%, 33.7%) |
| CIE-LAB | lab(27.22, 43.72, -66.34) |
| CIE-LCH | lch(27.22, 79.45, 303.39°) |
| OKLab | oklab(39.14% 0.0175 -0.1918) |
| OKLCH | oklch(39.14% 0.193 275.2) |
| XYZ | xyz(9.2537, 5.1726, 38.0392) |
| Luminance | 0.0517 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.68
Sapphire (survey)
#2138AB
ΔE00 4.41
True Blue
#010FCC
ΔE00 5.68
Royal
#0C1793
ΔE00 5.74
Cobalt Blue
#030AA7
ΔE00 6.00
Ultramarine
#2000B1
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312AA9 #A2A92A
analogous
#2A63A9 #312AA9 #712AA9
triadic
#312AA9 #A9312A #2AA931
tetradic
#312AA9 #A92A63 #A2A92A #2AA971
square
#312AA9 #A92A63 #A2A92A #2AA971
split-complementary
#312AA9 #A9712A #63A92A
monochromatic
#151247 #231E78 #312AA9 #4841D0 #7772DC
Accessibility & contrast
On white
10.32
#312AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#312AA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312AA9
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312AA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312AA9 | 1.00 | 10.32 | 2.03 | 10.32 |
| #FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003AA7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #312aa9; /* rgb */ color: rgb(49, 42, 169); /* oklch */ color: oklch(39.1% 0.193 275.2);
Tailwind
colors: {
custom: {
50: '#7b66c4',
500: '#312aa9',
950: '#000000',
},
}SCSS
$custom: #312aa9; $custom-light: #7b66c4; $custom-dark: #000000;
JSON
{
"hex": "#312aa9",
"rgb": {
"r": 49,
"g": 42,
"b": 169
},
"hsl": {
"h": 243.307,
"s": 60.19,
"l": 41.373
},
"oklch": {
"l": 0.39142,
"c": 0.19261,
"h": 275.2
},
"luminance": 0.05173
}Semantic roles & 50–950 ramp
primary
#312AA9
secondary
#BEC36C
accent
#E344DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82