#312A9F#312A9F
#312A9F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.180 H 276.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).
Color values
| HEX | #312A9F |
|---|---|
| RGB | rgb(49, 42, 159) |
| HSL | hsl(244, 58%, 39%) |
| HSV | hsv(244, 74%, 62%) |
| CMYK | cmyk(69.2%, 73.6%, 0%, 37.6%) |
| CIE-LAB | lab(26.19, 40.42, -61.98) |
| CIE-LCH | lch(26.19, 74.00, 303.11°) |
| OKLab | oklab(38.1% 0.0195 -0.1791) |
| OKLCH | oklch(38.1% 0.18 276.2) |
| XYZ | xyz(8.3505, 4.8113, 33.2828) |
| Luminance | 0.0481 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.38
Sapphire (survey)
#2138AB
ΔE00 4.64
Royal
#0C1793
ΔE00 5.12
Cobalt Blue
#030AA7
ΔE00 6.07
Ultramarine
#2000B1
ΔE00 6.44
Royal Blue (survey)
#0504AA
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312A9F #989F2A
analogous
#2A5E9F #312A9F #6C2A9F
triadic
#312A9F #9F312A #2A9F31
tetradic
#312A9F #9F2A5E #989F2A #2A9F6C
square
#312A9F #9F2A5E #989F2A #2A9F6C
split-complementary
#312A9F #9F6C2A #5E9F2A
monochromatic
#13103E #221D6F #312A9F #443BCB #726BD8
Accessibility & contrast
On white
10.70
#312A9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#312A9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312A9F
10.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312A9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312A9F | 1.00 | 10.70 | 1.96 | 10.70 |
| #FFFFFF | 10.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #312a9f; /* rgb */ color: rgb(49, 42, 159); /* oklch */ color: oklch(38.1% 0.180 276.2);
Tailwind
colors: {
custom: {
50: '#7965bd',
500: '#312a9f',
950: '#000000',
},
}SCSS
$custom: #312a9f; $custom-light: #7965bd; $custom-dark: #000000;
JSON
{
"hex": "#312a9f",
"rgb": {
"r": 49,
"g": 42,
"b": 159
},
"hsl": {
"h": 243.59,
"s": 58.209,
"l": 39.412
},
"oklch": {
"l": 0.38103,
"c": 0.18017,
"h": 276.2
},
"luminance": 0.04812
}Semantic roles & 50–950 ramp
primary
#312A9F
secondary
#B9BF66
accent
#E146D8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81