#313A94#313A94
#313A94 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.146 H 273.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #313A94 |
|---|---|
| RGB | rgb(49, 58, 148) |
| HSL | hsl(235, 50%, 39%) |
| HSV | hsv(235, 67%, 58%) |
| CMYK | cmyk(66.9%, 60.8%, 0%, 42%) |
| CIE-LAB | lab(28.94, 26.51, -50.75) |
| CIE-LCH | lch(28.94, 57.26, 297.58°) |
| OKLab | oklab(39.8% 0.0086 -0.1462) |
| OKLCH | oklch(39.8% 0.146 273.4) |
| XYZ | xyz(8.1232, 5.8165, 28.7058) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.60
Sapphire (survey)
#2138AB
ΔE00 3.64
Darkslateblue
#483D8B
ΔE00 4.53
Cobalt
#0047AB
ΔE00 6.71
Ocean Blue
#4F42B5
ΔE00 6.76
Cobalt (survey)
#1E488F
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313A94 #948B31
analogous
#316B94 #313A94 #593194
triadic
#313A94 #94313A #3A9431
tetradic
#313A94 #94316B #948B31 #319459
square
#313A94 #94316B #948B31 #319459
split-complementary
#313A94 #945931 #6B9431
monochromatic
#131638 #222866 #313A94 #424DC0 #7079D0
Accessibility & contrast
On white
9.71
#313A94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#313A94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313A94
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313A94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313A94 | 1.00 | 9.71 | 2.16 | 9.71 |
| #FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004997
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313a94; /* rgb */ color: rgb(49, 58, 148); /* oklch */ color: oklch(39.8% 0.146 273.4);
Tailwind
colors: {
custom: {
50: '#7570b4',
500: '#313a94',
950: '#000000',
},
}SCSS
$custom: #313a94; $custom-light: #7570b4; $custom-dark: #000000;
JSON
{
"hex": "#313a94",
"rgb": {
"r": 49,
"g": 58,
"b": 148
},
"hsl": {
"h": 234.545,
"s": 50.254,
"l": 38.627
},
"oklch": {
"l": 0.39796,
"c": 0.14643,
"h": 273.4
},
"luminance": 0.05817
}Semantic roles & 50–950 ramp
primary
#313A94
secondary
#B7B069
accent
#CD4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80