#313E98#313E98
#313E98 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.147 H 272.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).
Color values
| HEX | #313E98 |
|---|---|
| RGB | rgb(49, 62, 152) |
| HSL | hsl(232, 51%, 39%) |
| HSV | hsv(232, 68%, 60%) |
| CMYK | cmyk(67.8%, 59.2%, 0%, 40.4%) |
| CIE-LAB | lab(30.31, 25.32, -50.97) |
| CIE-LCH | lch(30.31, 56.91, 296.41°) |
| OKLab | oklab(40.91% 0.0051 -0.1468) |
| OKLCH | oklch(40.91% 0.147 272) |
| XYZ | xyz(8.6548, 6.3644, 30.4720) |
| Luminance | 0.0636 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.50
Sapphire (survey)
#2138AB
ΔE00 3.56
Darkslateblue
#483D8B
ΔE00 4.98
Cobalt
#0047AB
ΔE00 5.56
Cobalt (survey)
#1E488F
ΔE00 5.84
Ocean Blue
#4F42B5
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E98 #988B31
analogous
#317298 #313E98 #583198
triadic
#313E98 #98313E #3E9831
tetradic
#313E98 #983172 #988B31 #319858
square
#313E98 #983172 #988B31 #319858
split-complementary
#313E98 #985831 #729831
monochromatic
#13183B #222B6A #313E98 #4454C3 #727ED2
Accessibility & contrast
On white
9.24
#313E98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#313E98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E98
9.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E98 | 1.00 | 9.24 | 2.27 | 9.24 |
| #FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313e98; /* rgb */ color: rgb(49, 62, 152); /* oklch */ color: oklch(40.9% 0.147 272.0);
Tailwind
colors: {
custom: {
50: '#7673b7',
500: '#313e98',
950: '#000000',
},
}SCSS
$custom: #313e98; $custom-light: #7673b7; $custom-dark: #000000;
JSON
{
"hex": "#313e98",
"rgb": {
"r": 49,
"g": 62,
"b": 152
},
"hsl": {
"h": 232.427,
"s": 51.244,
"l": 39.412
},
"oklch": {
"l": 0.40914,
"c": 0.14685,
"h": 272
},
"luminance": 0.06365
}Semantic roles & 50–950 ramp
primary
#313E98
secondary
#B9B06B
accent
#C94DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80