#312AAB#312AAB
#312AAB is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.4% C 0.195 H 275.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).
Color values
| HEX | #312AAB |
|---|---|
| RGB | rgb(49, 42, 171) |
| HSL | hsl(243, 61%, 42%) |
| HSV | hsv(243, 75%, 67%) |
| CMYK | cmyk(71.3%, 75.4%, 0%, 32.9%) |
| CIE-LAB | lab(27.43, 44.37, -67.20) |
| CIE-LCH | lch(27.43, 80.53, 303.44°) |
| OKLab | oklab(39.35% 0.0171 -0.1943) |
| OKLCH | oklch(39.35% 0.195 275) |
| XYZ | xyz(9.4428, 5.2483, 39.0356) |
| Luminance | 0.0525 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.59
Sapphire (survey)
#2138AB
ΔE00 4.41
True Blue
#010FCC
ΔE00 5.49
Royal
#0C1793
ΔE00 5.90
Ultramarine
#2000B1
ΔE00 6.02
Cobalt Blue
#030AA7
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312AAB #A4AB2A
analogous
#2A64AB #312AAB #722AAB
triadic
#312AAB #AB312A #2AAB31
tetradic
#312AAB #AB2A64 #A4AB2A #2AAB72
square
#312AAB #AB2A64 #A4AB2A #2AAB72
split-complementary
#312AAB #AB722A #64AB2A
monochromatic
#151249 #231E7A #312AAB #4942D1 #7973DD
Accessibility & contrast
On white
10.24
#312AAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#312AAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312AAB
10.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312AAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312AAB | 1.00 | 10.24 | 2.05 | 10.24 |
| #FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #312aab; /* rgb */ color: rgb(49, 42, 171); /* oklch */ color: oklch(39.4% 0.195 275.0);
Tailwind
colors: {
custom: {
50: '#7c66c5',
500: '#312aab',
950: '#000000',
},
}SCSS
$custom: #312aab; $custom-light: #7c66c5; $custom-dark: #000000;
JSON
{
"hex": "#312aab",
"rgb": {
"r": 49,
"g": 42,
"b": 171
},
"hsl": {
"h": 243.256,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.39353,
"c": 0.19506,
"h": 275
},
"luminance": 0.05249
}Semantic roles & 50–950 ramp
primary
#312AAB
secondary
#BFC46D
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82