#315FC7#315FC7
#315FC7 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.3% C 0.170 H 263.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #315FC7 |
|---|---|
| RGB | rgb(49, 95, 199) |
| HSL | hsl(222, 60%, 49%) |
| HSV | hsv(222, 75%, 78%) |
| CMYK | cmyk(75.4%, 52.3%, 0%, 22%) |
| CIE-LAB | lab(42.70, 21.11, -58.74) |
| CIE-LCH | lch(42.70, 62.42, 289.76°) |
| OKLab | oklab(51.34% -0.0191 -0.1691) |
| OKLCH | oklch(51.34% 0.17 263.6) |
| XYZ | xyz(15.6640, 12.9592, 55.6976) |
| Luminance | 0.1296 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 3.42
Azul
#1D5DEC
ΔE00 4.45
Sapphire
#0F52BA
ΔE00 4.79
French Blue
#436BAD
ΔE00 5.06
Royal Blue
#4169E1
ΔE00 5.14
Mid Blue
#276AB3
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#315FC7 #C79931
analogous
#31AAC7 #315FC7 #4E31C7
triadic
#315FC7 #C7315F #5FC731
tetradic
#315FC7 #C731AA #C79931 #31C74E
square
#315FC7 #C731AA #C79931 #31C74E
split-complementary
#315FC7 #C74E31 #AAC731
monochromatic
#193065 #254896 #315FC7 #5E83D7 #8FA9E3
Accessibility & contrast
On white
5.85
#315FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#315FC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #315FC7
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##315FC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##315FC7 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#166CCB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #315fc7; /* rgb */ color: rgb(49, 95, 199); /* oklch */ color: oklch(51.3% 0.170 263.6);
Tailwind
colors: {
custom: {
50: '#7e8bd9',
500: '#315fc7',
950: '#000000',
},
}SCSS
$custom: #315fc7; $custom-light: #7e8bd9; $custom-dark: #000000;
JSON
{
"hex": "#315fc7",
"rgb": {
"r": 49,
"g": 95,
"b": 199
},
"hsl": {
"h": 221.6,
"s": 60.484,
"l": 48.627
},
"oklch": {
"l": 0.51344,
"c": 0.17019,
"h": 263.6
},
"luminance": 0.12961
}Semantic roles & 50–950 ramp
primary
#315FC7
secondary
#CEB886
accent
#B344E4
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C15
muted
#7C7D83