#313F98#313F98
#313F98 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.146 H 271.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).
Color values
| HEX | #313F98 |
|---|---|
| RGB | rgb(49, 63, 152) |
| HSL | hsl(232, 51%, 39%) |
| HSV | hsv(232, 68%, 60%) |
| CMYK | cmyk(67.8%, 58.6%, 0%, 40.4%) |
| CIE-LAB | lab(30.58, 24.65, -50.54) |
| CIE-LCH | lch(30.58, 56.23, 296.00°) |
| OKLab | oklab(41.11% 0.0042 -0.1455) |
| OKLCH | oklch(41.11% 0.146 271.7) |
| XYZ | xyz(8.7097, 6.4742, 30.4903) |
| Luminance | 0.0648 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.55
Sapphire (survey)
#2138AB
ΔE00 3.74
Darkslateblue
#483D8B
ΔE00 5.10
Cobalt
#0047AB
ΔE00 5.33
Cobalt (survey)
#1E488F
ΔE00 5.55
Ocean Blue
#4F42B5
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F98 #988A31
analogous
#317398 #313F98 #573198
triadic
#313F98 #98313F #3F9831
tetradic
#313F98 #983173 #988A31 #319857
square
#313F98 #983173 #988A31 #319857
split-complementary
#313F98 #985731 #739831
monochromatic
#13193B #222C6A #313F98 #4455C3 #727FD2
Accessibility & contrast
On white
9.15
#313F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.30
#313F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F98
9.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F98 | 1.00 | 9.15 | 2.30 | 9.15 |
| #FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #313f98; /* rgb */ color: rgb(49, 63, 152); /* oklch */ color: oklch(41.1% 0.146 271.7);
Tailwind
colors: {
custom: {
50: '#7673b7',
500: '#313f98',
950: '#000000',
},
}SCSS
$custom: #313f98; $custom-light: #7673b7; $custom-dark: #000000;
JSON
{
"hex": "#313f98",
"rgb": {
"r": 49,
"g": 63,
"b": 152
},
"hsl": {
"h": 231.845,
"s": 51.244,
"l": 39.412
},
"oklch": {
"l": 0.41111,
"c": 0.14555,
"h": 271.7
},
"luminance": 0.06475
}Semantic roles & 50–950 ramp
primary
#313F98
secondary
#B9AF6B
accent
#C74DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80