#313F94#313F94
#313F94 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.140 H 271.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).
Color values
| HEX | #313F94 |
|---|---|
| RGB | rgb(49, 63, 148) |
| HSL | hsl(232, 50%, 39%) |
| HSV | hsv(232, 67%, 58%) |
| CMYK | cmyk(66.9%, 57.4%, 0%, 42%) |
| CIE-LAB | lab(30.27, 23.18, -48.60) |
| CIE-LCH | lch(30.27, 53.85, 295.50°) |
| OKLab | oklab(40.78% 0.0041 -0.1398) |
| OKLCH | oklch(40.78% 0.14 271.7) |
| XYZ | xyz(8.3876, 6.3453, 28.7940) |
| Luminance | 0.0635 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.60
Sapphire (survey)
#2138AB
ΔE00 4.29
Darkslateblue
#483D8B
ΔE00 4.94
Cobalt (survey)
#1E488F
ΔE00 5.33
Cobalt
#0047AB
ΔE00 5.55
Darkish Blue
#014182
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F94 #948631
analogous
#317094 #313F94 #543194
triadic
#313F94 #94313F #3F9431
tetradic
#313F94 #943170 #948631 #319454
square
#313F94 #943170 #948631 #319454
split-complementary
#313F94 #945431 #709431
monochromatic
#131838 #222B66 #313F94 #4254C0 #707DD0
Accessibility & contrast
On white
9.25
#313F94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#313F94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F94
9.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F94 | 1.00 | 9.25 | 2.27 | 9.25 |
| #FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313f94; /* rgb */ color: rgb(49, 63, 148); /* oklch */ color: oklch(40.8% 0.140 271.7);
Tailwind
colors: {
custom: {
50: '#7573b4',
500: '#313f94',
950: '#000000',
},
}SCSS
$custom: #313f94; $custom-light: #7573b4; $custom-dark: #000000;
JSON
{
"hex": "#313f94",
"rgb": {
"r": 49,
"g": 63,
"b": 148
},
"hsl": {
"h": 231.515,
"s": 50.254,
"l": 38.627
},
"oklch": {
"l": 0.40781,
"c": 0.13985,
"h": 271.7
},
"luminance": 0.06346
}Semantic roles & 50–950 ramp
primary
#313F94
secondary
#B7AC69
accent
#C64EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80