#312BA4#312BA4
#312BA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.185 H 275.6°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).
Color values
| HEX | #312BA4 |
|---|---|
| RGB | rgb(49, 43, 164) |
| HSL | hsl(243, 58%, 41%) |
| HSV | hsv(243, 74%, 64%) |
| CMYK | cmyk(70.1%, 73.8%, 0%, 35.7%) |
| CIE-LAB | lab(26.91, 41.51, -63.84) |
| CIE-LCH | lch(26.91, 76.15, 303.03°) |
| OKLab | oklab(38.76% 0.018 -0.1845) |
| OKLCH | oklch(38.76% 0.185 275.6) |
| XYZ | xyz(8.8291, 5.0602, 35.6262) |
| Luminance | 0.0506 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.19
Sapphire (survey)
#2138AB
ΔE00 4.25
Royal
#0C1793
ΔE00 5.56
Cobalt Blue
#030AA7
ΔE00 6.20
True Blue
#010FCC
ΔE00 6.33
Ultramarine
#2000B1
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312BA4 #9EA42B
analogous
#2B61A4 #312BA4 #6D2BA4
triadic
#312BA4 #A4312B #2BA431
tetradic
#312BA4 #A42B61 #9EA42B #2BA46D
square
#312BA4 #A42B61 #9EA42B #2BA46D
split-complementary
#312BA4 #A46D2B #61A42B
monochromatic
#141243 #231E74 #312BA4 #463FCD #7570D9
Accessibility & contrast
On white
10.44
#312BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.01
#312BA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312BA4
10.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312BA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312BA4 | 1.00 | 10.44 | 2.01 | 10.44 |
| #FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #312ba4; /* rgb */ color: rgb(49, 43, 164); /* oklch */ color: oklch(38.8% 0.185 275.6);
Tailwind
colors: {
custom: {
50: '#7a66c0',
500: '#312ba4',
950: '#000000',
},
}SCSS
$custom: #312ba4; $custom-light: #7a66c0; $custom-dark: #000000;
JSON
{
"hex": "#312ba4",
"rgb": {
"r": 49,
"g": 43,
"b": 164
},
"hsl": {
"h": 242.975,
"s": 58.454,
"l": 40.588
},
"oklch": {
"l": 0.38764,
"c": 0.1854,
"h": 275.6
},
"luminance": 0.05061
}Semantic roles & 50–950 ramp
primary
#312BA4
secondary
#BCC16A
accent
#E246DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81