#312BAA#312BAA
#312BAA is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.193 H 275.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).
Color values
| HEX | #312BAA |
|---|---|
| RGB | rgb(49, 43, 170) |
| HSL | hsl(243, 60%, 42%) |
| HSV | hsv(243, 75%, 67%) |
| CMYK | cmyk(71.2%, 74.7%, 0%, 33.3%) |
| CIE-LAB | lab(27.52, 43.49, -66.44) |
| CIE-LCH | lch(27.52, 79.41, 303.21°) |
| OKLab | oklab(39.39% 0.0168 -0.1921) |
| OKLCH | oklch(39.39% 0.193 275) |
| XYZ | xyz(9.3838, 5.2821, 38.5474) |
| Luminance | 0.0528 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.85
Sapphire (survey)
#2138AB
ΔE00 4.19
True Blue
#010FCC
ΔE00 5.74
Royal
#0C1793
ΔE00 5.98
Cobalt Blue
#030AA7
ΔE00 6.22
Ultramarine
#2000B1
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312BAA #A4AA2B
analogous
#2B64AA #312BAA #712BAA
triadic
#312BAA #AA312B #2BAA31
tetradic
#312BAA #AA2B64 #A4AA2B #2BAA71
square
#312BAA #AA2B64 #A4AA2B #2BAA71
split-complementary
#312BAA #AA712B #64AA2B
monochromatic
#151248 #231F79 #312BAA #4943CF #7974DC
Accessibility & contrast
On white
10.21
#312BAA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#312BAA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312BAA
10.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312BAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312BAA | 1.00 | 10.21 | 2.06 | 10.21 |
| #FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003BA8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #312baa; /* rgb */ color: rgb(49, 43, 170); /* oklch */ color: oklch(39.4% 0.193 275.0);
Tailwind
colors: {
custom: {
50: '#7c66c5',
500: '#312baa',
950: '#000000',
},
}SCSS
$custom: #312baa; $custom-light: #7c66c5; $custom-dark: #000000;
JSON
{
"hex": "#312baa",
"rgb": {
"r": 49,
"g": 43,
"b": 170
},
"hsl": {
"h": 242.835,
"s": 59.624,
"l": 41.765
},
"oklch": {
"l": 0.39388,
"c": 0.19285,
"h": 275
},
"luminance": 0.05283
}Semantic roles & 50–950 ramp
primary
#312BAA
secondary
#BFC36E
accent
#E345DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82