#312F92#312F92
#312F92 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.158 H 276.6°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).
Color values
| HEX | #312F92 |
|---|---|
| RGB | rgb(49, 47, 146) |
| HSL | hsl(241, 51%, 38%) |
| HSV | hsv(241, 68%, 57%) |
| CMYK | cmyk(66.4%, 67.8%, 0%, 42.7%) |
| CIE-LAB | lab(26.04, 32.96, -54.26) |
| CIE-LCH | lch(26.04, 63.49, 301.27°) |
| OKLab | oklab(37.61% 0.018 -0.1565) |
| OKLCH | oklch(37.61% 0.158 276.6) |
| XYZ | xyz(7.4698, 4.7607, 27.7138) |
| Luminance | 0.0476 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.61
Darkslateblue
#483D8B
ΔE00 5.46
Blueberry
#464196
ΔE00 5.56
Royal
#0C1793
ΔE00 6.12
Indigo Blue
#3A18B1
ΔE00 6.80
Midnight Blue
#191970
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312F92 #90922F
analogous
#2F5E92 #312F92 #622F92
triadic
#312F92 #92312F #2F9231
tetradic
#312F92 #922F5E #90922F #2F9262
square
#312F92 #922F5E #90922F #2F9262
split-complementary
#312F92 #92622F #5E922F
monochromatic
#121135 #212064 #312F92 #413EC0 #6E6CD0
Accessibility & contrast
On white
10.76
#312F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#312F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312F92
10.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312F92 | 1.00 | 10.76 | 1.95 | 10.76 |
| #FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#003990
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #312f92; /* rgb */ color: rgb(49, 47, 146); /* oklch */ color: oklch(37.6% 0.158 276.6);
Tailwind
colors: {
custom: {
50: '#7668b3',
500: '#312f92',
950: '#000000',
},
}SCSS
$custom: #312f92; $custom-light: #7668b3; $custom-dark: #000000;
JSON
{
"hex": "#312f92",
"rgb": {
"r": 49,
"g": 47,
"b": 146
},
"hsl": {
"h": 241.212,
"s": 51.295,
"l": 37.843
},
"oklch": {
"l": 0.37614,
"c": 0.15757,
"h": 276.6
},
"luminance": 0.04761
}Semantic roles & 50–950 ramp
primary
#312F92
secondary
#B5B766
accent
#DB4DD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80