#312E9F#312E9F
#312E9F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.176 H 275.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).
Color values
| HEX | #312E9F |
|---|---|
| RGB | rgb(49, 46, 159) |
| HSL | hsl(242, 55%, 40%) |
| HSV | hsv(242, 71%, 62%) |
| CMYK | cmyk(69.2%, 71.1%, 0%, 37.6%) |
| CIE-LAB | lab(27.04, 38.06, -60.58) |
| CIE-LCH | lch(27.04, 71.54, 302.14°) |
| OKLab | oklab(38.71% 0.017 -0.175) |
| OKLCH | oklch(38.71% 0.176 275.5) |
| XYZ | xyz(8.4996, 5.1094, 33.3325) |
| Luminance | 0.0511 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.75
Indigo Blue
#3A18B1
ΔE00 5.24
Royal
#0C1793
ΔE00 5.92
Blueberry
#464196
ΔE00 6.12
Darkslateblue
#483D8B
ΔE00 6.52
Ocean Blue
#4F42B5
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312E9F #9C9F2E
analogous
#2E639F #312E9F #692E9F
triadic
#312E9F #9F312E #2E9F31
tetradic
#312E9F #9F2E63 #9C9F2E #2E9F69
square
#312E9F #9F2E63 #9C9F2E #2E9F69
split-complementary
#312E9F #9F692E #639F2E
monochromatic
#141340 #222070 #312E9F #4542C8 #7471D6
Accessibility & contrast
On white
10.39
#312E9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#312E9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312E9F
10.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312E9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312E9F | 1.00 | 10.39 | 2.02 | 10.39 |
| #FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #312e9f; /* rgb */ color: rgb(49, 46, 159); /* oklch */ color: oklch(38.7% 0.176 275.5);
Tailwind
colors: {
custom: {
50: '#7968bc',
500: '#312e9f',
950: '#000000',
},
}SCSS
$custom: #312e9f; $custom-light: #7968bc; $custom-dark: #000000;
JSON
{
"hex": "#312e9f",
"rgb": {
"r": 49,
"g": 46,
"b": 159
},
"hsl": {
"h": 241.593,
"s": 55.122,
"l": 40.196
},
"oklch": {
"l": 0.38713,
"c": 0.17584,
"h": 275.5
},
"luminance": 0.0511
}Semantic roles & 50–950 ramp
primary
#312E9F
secondary
#BBBE6B
accent
#DE49DA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81