#312BA2#312BA2
#312BA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.183 H 275.8°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).
Color values
| HEX | #312BA2 |
|---|---|
| RGB | rgb(49, 43, 162) |
| HSL | hsl(243, 58%, 40%) |
| HSV | hsv(243, 73%, 64%) |
| CMYK | cmyk(69.8%, 73.5%, 0%, 36.5%) |
| CIE-LAB | lab(26.70, 40.84, -62.96) |
| CIE-LCH | lch(26.70, 75.05, 302.97°) |
| OKLab | oklab(38.56% 0.0183 -0.182) |
| OKLCH | oklch(38.56% 0.183 275.8) |
| XYZ | xyz(8.6499, 4.9886, 34.6825) |
| Luminance | 0.0499 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.30
Indigo Blue
#3A18B1
ΔE00 4.34
Royal
#0C1793
ΔE00 5.45
Cobalt Blue
#030AA7
ΔE00 6.23
Ultramarine
#2000B1
ΔE00 6.52
True Blue
#010FCC
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312BA2 #9CA22B
analogous
#2B61A2 #312BA2 #6C2BA2
triadic
#312BA2 #A2312B #2BA231
tetradic
#312BA2 #A22B61 #9CA22B #2BA26C
square
#312BA2 #A22B61 #9CA22B #2BA26C
split-complementary
#312BA2 #A26C2B #61A22B
monochromatic
#141141 #221E72 #312BA2 #453ECC #746FD9
Accessibility & contrast
On white
10.51
#312BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#312BA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312BA2
10.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312BA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312BA2 | 1.00 | 10.51 | 2.00 | 10.51 |
| #FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #312ba2; /* rgb */ color: rgb(49, 43, 162); /* oklch */ color: oklch(38.6% 0.183 275.8);
Tailwind
colors: {
custom: {
50: '#7a66bf',
500: '#312ba2',
950: '#000000',
},
}SCSS
$custom: #312ba2; $custom-light: #7a66bf; $custom-dark: #000000;
JSON
{
"hex": "#312ba2",
"rgb": {
"r": 49,
"g": 43,
"b": 162
},
"hsl": {
"h": 243.025,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.38558,
"c": 0.1829,
"h": 275.8
},
"luminance": 0.04989
}Semantic roles & 50–950 ramp
primary
#312BA2
secondary
#BBC069
accent
#E147D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81