#315FC6#315FC6
#315FC6 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.169 H 263.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #315FC6 |
|---|---|
| RGB | rgb(49, 95, 198) |
| HSL | hsl(221, 60%, 48%) |
| HSV | hsv(221, 75%, 78%) |
| CMYK | cmyk(75.3%, 52%, 0%, 22.4%) |
| CIE-LAB | lab(42.63, 20.73, -58.28) |
| CIE-LCH | lch(42.63, 61.85, 289.58°) |
| OKLab | oklab(51.27% -0.0192 -0.1677) |
| OKLCH | oklch(51.27% 0.169 263.5) |
| XYZ | xyz(15.5482, 12.9129, 55.0881) |
| Luminance | 0.1291 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 3.32
Azul
#1D5DEC
ΔE00 4.58
Sapphire
#0F52BA
ΔE00 4.74
French Blue
#436BAD
ΔE00 4.99
Royal Blue
#4169E1
ΔE00 5.24
Mid Blue
#276AB3
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#315FC6 #C69831
analogous
#31A9C6 #315FC6 #4E31C6
triadic
#315FC6 #C6315F #5FC631
tetradic
#315FC6 #C631A9 #C69831 #31C64E
square
#315FC6 #C631A9 #C69831 #31C64E
split-complementary
#315FC6 #C64E31 #A9C631
monochromatic
#193064 #254795 #315FC6 #5D83D7 #8EA8E3
Accessibility & contrast
On white
5.86
#315FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.58
#315FC6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #315FC6
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##315FC6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##315FC6 | 1.00 | 5.86 | 3.58 | 5.86 |
| #FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#196CCA
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #315fc6; /* rgb */ color: rgb(49, 95, 198); /* oklch */ color: oklch(51.3% 0.169 263.5);
Tailwind
colors: {
custom: {
50: '#7e8bd8',
500: '#315fc6',
950: '#000000',
},
}SCSS
$custom: #315fc6; $custom-light: #7e8bd8; $custom-dark: #000000;
JSON
{
"hex": "#315fc6",
"rgb": {
"r": 49,
"g": 95,
"b": 198
},
"hsl": {
"h": 221.477,
"s": 60.324,
"l": 48.431
},
"oklch": {
"l": 0.51269,
"c": 0.16884,
"h": 263.5
},
"luminance": 0.12915
}Semantic roles & 50–950 ramp
primary
#315FC6
secondary
#CEB785
accent
#B244E3
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C14
muted
#7C7D83