#313E94#313E94
#313E94 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.141 H 272.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #313E94 |
|---|---|
| RGB | rgb(49, 62, 148) |
| HSL | hsl(232, 50%, 39%) |
| HSV | hsv(232, 67%, 58%) |
| CMYK | cmyk(66.9%, 58.1%, 0%, 42%) |
| CIE-LAB | lab(30.00, 23.85, -49.04) |
| CIE-LCH | lch(30.00, 54.53, 295.93°) |
| OKLab | oklab(40.58% 0.005 -0.1411) |
| OKLCH | oklch(40.58% 0.141 272) |
| XYZ | xyz(8.3327, 6.2356, 28.7757) |
| Luminance | 0.0624 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.53
Sapphire (survey)
#2138AB
ΔE00 4.11
Darkslateblue
#483D8B
ΔE00 4.81
Cobalt (survey)
#1E488F
ΔE00 5.63
Cobalt
#0047AB
ΔE00 5.76
Ocean Blue
#4F42B5
ΔE00 6.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E94 #948731
analogous
#316F94 #313E94 #553194
triadic
#313E94 #94313E #3E9431
tetradic
#313E94 #94316F #948731 #319455
square
#313E94 #94316F #948731 #319455
split-complementary
#313E94 #945531 #6F9431
monochromatic
#131738 #222B66 #313E94 #4252C0 #707CD0
Accessibility & contrast
On white
9.34
#313E94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#313E94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E94
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E94 | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005362
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313e94; /* rgb */ color: rgb(49, 62, 148); /* oklch */ color: oklch(40.6% 0.141 272.0);
Tailwind
colors: {
custom: {
50: '#7573b4',
500: '#313e94',
950: '#000000',
},
}SCSS
$custom: #313e94; $custom-light: #7573b4; $custom-dark: #000000;
JSON
{
"hex": "#313e94",
"rgb": {
"r": 49,
"g": 62,
"b": 148
},
"hsl": {
"h": 232.121,
"s": 50.254,
"l": 38.627
},
"oklch": {
"l": 0.4058,
"c": 0.14117,
"h": 272
},
"luminance": 0.06236
}Semantic roles & 50–950 ramp
primary
#313E94
secondary
#B7AD69
accent
#C74EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80