#313E95#313E95
#313E95 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.143 H 272.0°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).
Color values
| HEX | #313E95 |
|---|---|
| RGB | rgb(49, 62, 149) |
| HSL | hsl(232, 51%, 39%) |
| HSV | hsv(232, 67%, 58%) |
| CMYK | cmyk(67.1%, 58.4%, 0%, 41.6%) |
| CIE-LAB | lab(30.08, 24.21, -49.52) |
| CIE-LCH | lch(30.08, 55.13, 296.06°) |
| OKLab | oklab(40.66% 0.0051 -0.1425) |
| OKLCH | oklch(40.66% 0.143 272) |
| XYZ | xyz(8.4122, 6.2674, 29.1944) |
| Luminance | 0.0627 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.51
Sapphire (survey)
#2138AB
ΔE00 3.97
Darkslateblue
#483D8B
ΔE00 4.84
Cobalt (survey)
#1E488F
ΔE00 5.68
Cobalt
#0047AB
ΔE00 5.71
Ocean Blue
#4F42B5
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E95 #958831
analogous
#317095 #313E95 #563195
triadic
#313E95 #95313E #3E9531
tetradic
#313E95 #953170 #958831 #319556
square
#313E95 #953170 #958831 #319556
split-complementary
#313E95 #955631 #709531
monochromatic
#131839 #222B67 #313E95 #4253C1 #707DD0
Accessibility & contrast
On white
9.32
#313E95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#313E95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E95
9.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E95 | 1.00 | 9.32 | 2.25 | 9.32 |
| #FFFFFF | 9.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313e95; /* rgb */ color: rgb(49, 62, 149); /* oklch */ color: oklch(40.7% 0.143 272.0);
Tailwind
colors: {
custom: {
50: '#7573b5',
500: '#313e95',
950: '#000000',
},
}SCSS
$custom: #313e95; $custom-light: #7573b5; $custom-dark: #000000;
JSON
{
"hex": "#313e95",
"rgb": {
"r": 49,
"g": 62,
"b": 149
},
"hsl": {
"h": 232.2,
"s": 50.505,
"l": 38.824
},
"oklch": {
"l": 0.40663,
"c": 0.1426,
"h": 272
},
"luminance": 0.06268
}Semantic roles & 50–950 ramp
primary
#313E95
secondary
#B8AE6A
accent
#C84EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80