#312E8F#312E8F
#312E8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.155 H 277.1°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).
Color values
| HEX | #312E8F |
|---|---|
| RGB | rgb(49, 46, 143) |
| HSL | hsl(242, 51%, 37%) |
| HSV | hsv(242, 68%, 56%) |
| CMYK | cmyk(65.7%, 67.8%, 0%, 43.9%) |
| CIE-LAB | lab(25.53, 32.54, -53.24) |
| CIE-LCH | lch(25.53, 62.40, 301.43°) |
| OKLab | oklab(37.16% 0.0192 -0.1536) |
| OKLCH | oklch(37.16% 0.155 277.1) |
| XYZ | xyz(7.1999, 4.5895, 26.4877) |
| Luminance | 0.0459 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.10
Darkslateblue
#483D8B
ΔE00 5.49
Blueberry
#464196
ΔE00 5.79
Royal
#0C1793
ΔE00 5.98
Midnight Blue
#191970
ΔE00 6.90
Indigo Blue
#3A18B1
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312E8F #8C8F2E
analogous
#2E5B8F #312E8F #622E8F
triadic
#312E8F #8F312E #2E8F31
tetradic
#312E8F #8F2E5B #8C8F2E #2E8F62
square
#312E8F #8F2E5B #8C8F2E #2E8F62
split-complementary
#312E8F #8F622E #5B8F2E
monochromatic
#111032 #211F61 #312E8F #413DBD #6C69CF
Accessibility & contrast
On white
10.95
#312E8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#312E8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312E8F
10.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312E8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312E8F | 1.00 | 10.95 | 1.92 | 10.95 |
| #FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #312e8f; /* rgb */ color: rgb(49, 46, 143); /* oklch */ color: oklch(37.2% 0.155 277.1);
Tailwind
colors: {
custom: {
50: '#7567b1',
500: '#312e8f',
950: '#000000',
},
}SCSS
$custom: #312e8f; $custom-light: #7567b1; $custom-dark: #000000;
JSON
{
"hex": "#312e8f",
"rgb": {
"r": 49,
"g": 46,
"b": 143
},
"hsl": {
"h": 241.856,
"s": 51.323,
"l": 37.059
},
"oklch": {
"l": 0.3716,
"c": 0.15475,
"h": 277.1
},
"luminance": 0.0459
}Semantic roles & 50–950 ramp
primary
#312E8F
secondary
#B3B663
accent
#DB4DD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80