#313C98#313C98
#313C98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.149 H 272.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #313C98 |
|---|---|
| RGB | rgb(49, 60, 152) |
| HSL | hsl(234, 51%, 39%) |
| HSV | hsv(234, 68%, 60%) |
| CMYK | cmyk(67.8%, 60.5%, 0%, 40.4%) |
| CIE-LAB | lab(29.79, 26.65, -51.82) |
| CIE-LCH | lch(29.79, 58.27, 297.21°) |
| OKLab | oklab(40.53% 0.0069 -0.1493) |
| OKLCH | oklch(40.53% 0.149 272.6) |
| XYZ | xyz(8.5481, 6.1509, 30.4364) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.26
Blueberry
#464196
ΔE00 3.51
Darkslateblue
#483D8B
ΔE00 4.83
Cobalt
#0047AB
ΔE00 6.04
Ocean Blue
#4F42B5
ΔE00 6.30
Cobalt (survey)
#1E488F
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C98 #988D31
analogous
#317098 #313C98 #5A3198
triadic
#313C98 #98313C #3C9831
tetradic
#313C98 #983170 #988D31 #31985A
square
#313C98 #983170 #988D31 #31985A
split-complementary
#313C98 #985A31 #709831
monochromatic
#13173B #222A6A #313C98 #4451C3 #727CD2
Accessibility & contrast
On white
9.42
#313C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#313C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C98
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C98 | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313c98; /* rgb */ color: rgb(49, 60, 152); /* oklch */ color: oklch(40.5% 0.149 272.6);
Tailwind
colors: {
custom: {
50: '#7671b7',
500: '#313c98',
950: '#000000',
},
}SCSS
$custom: #313c98; $custom-light: #7671b7; $custom-dark: #000000;
JSON
{
"hex": "#313c98",
"rgb": {
"r": 49,
"g": 60,
"b": 152
},
"hsl": {
"h": 233.592,
"s": 51.244,
"l": 39.412
},
"oklch": {
"l": 0.40525,
"c": 0.14945,
"h": 272.6
},
"luminance": 0.06152
}Semantic roles & 50–950 ramp
primary
#313C98
secondary
#B9B16B
accent
#CC4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80