#312BA6#312BA6
#312BA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.188 H 275.4°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).
Color values
| HEX | #312BA6 |
|---|---|
| RGB | rgb(49, 43, 166) |
| HSL | hsl(243, 59%, 41%) |
| HSV | hsv(243, 74%, 65%) |
| CMYK | cmyk(70.5%, 74.1%, 0%, 34.9%) |
| CIE-LAB | lab(27.11, 42.17, -64.71) |
| CIE-LCH | lch(27.11, 77.24, 303.09°) |
| OKLab | oklab(38.97% 0.0176 -0.1871) |
| OKLCH | oklch(38.97% 0.188 275.4) |
| XYZ | xyz(9.0112, 5.1331, 36.5849) |
| Luminance | 0.0513 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.06
Sapphire (survey)
#2138AB
ΔE00 4.21
Royal
#0C1793
ΔE00 5.69
True Blue
#010FCC
ΔE00 6.12
Cobalt Blue
#030AA7
ΔE00 6.20
Ultramarine
#2000B1
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312BA6 #A0A62B
analogous
#2B62A6 #312BA6 #6E2BA6
triadic
#312BA6 #A6312B #2BA631
tetradic
#312BA6 #A62B62 #A0A62B #2BA66E
square
#312BA6 #A62B62 #A0A62B #2BA66E
split-complementary
#312BA6 #A66E2B #62A62B
monochromatic
#141245 #231E75 #312BA6 #4741CE #7671DA
Accessibility & contrast
On white
10.36
#312BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#312BA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312BA6
10.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312BA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312BA6 | 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)
#0045AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #312ba6; /* rgb */ color: rgb(49, 43, 166); /* oklch */ color: oklch(39.0% 0.188 275.4);
Tailwind
colors: {
custom: {
50: '#7b66c2',
500: '#312ba6',
950: '#000000',
},
}SCSS
$custom: #312ba6; $custom-light: #7b66c2; $custom-dark: #000000;
JSON
{
"hex": "#312ba6",
"rgb": {
"r": 49,
"g": 43,
"b": 166
},
"hsl": {
"h": 242.927,
"s": 58.852,
"l": 40.98
},
"oklch": {
"l": 0.38971,
"c": 0.1879,
"h": 275.4
},
"luminance": 0.05134
}Semantic roles & 50–950 ramp
primary
#312BA6
secondary
#BDC16B
accent
#E246DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81