#312AA8#312AA8
#312AA8 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.191 H 275.3°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).
Color values
| HEX | #312AA8 |
|---|---|
| RGB | rgb(49, 42, 168) |
| HSL | hsl(243, 60%, 41%) |
| HSV | hsv(243, 75%, 66%) |
| CMYK | cmyk(70.8%, 75%, 0%, 34.1%) |
| CIE-LAB | lab(27.12, 43.39, -65.91) |
| CIE-LCH | lch(27.12, 78.91, 303.36°) |
| OKLab | oklab(39.04% 0.0177 -0.1906) |
| OKLCH | oklch(39.04% 0.191 275.3) |
| XYZ | xyz(9.1601, 5.1352, 37.5466) |
| Luminance | 0.0514 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.73
Sapphire (survey)
#2138AB
ΔE00 4.42
Royal
#0C1793
ΔE00 5.67
True Blue
#010FCC
ΔE00 5.77
Cobalt Blue
#030AA7
ΔE00 5.99
Ultramarine
#2000B1
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312AA8 #A1A82A
analogous
#2A62A8 #312AA8 #702AA8
triadic
#312AA8 #A8312A #2AA831
tetradic
#312AA8 #A82A62 #A1A82A #2AA870
square
#312AA8 #A82A62 #A1A82A #2AA870
split-complementary
#312AA8 #A8702A #62A82A
monochromatic
#141246 #231E77 #312AA8 #4840CF #7771DB
Accessibility & contrast
On white
10.36
#312AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#312AA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312AA8
10.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312AA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312AA8 | 1.00 | 10.36 | 2.03 | 10.36 |
| #FFFFFF | 10.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #312aa8; /* rgb */ color: rgb(49, 42, 168); /* oklch */ color: oklch(39.0% 0.191 275.3);
Tailwind
colors: {
custom: {
50: '#7b66c3',
500: '#312aa8',
950: '#000000',
},
}SCSS
$custom: #312aa8; $custom-light: #7b66c3; $custom-dark: #000000;
JSON
{
"hex": "#312aa8",
"rgb": {
"r": 49,
"g": 42,
"b": 168
},
"hsl": {
"h": 243.333,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.39037,
"c": 0.19138,
"h": 275.3
},
"luminance": 0.05136
}Semantic roles & 50–950 ramp
primary
#312AA8
secondary
#BEC36B
accent
#E345DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82