#315DC4#315DC4
#315DC4 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.7% C 0.169 H 263.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #315DC4 |
|---|---|
| RGB | rgb(49, 93, 196) |
| HSL | hsl(222, 60%, 48%) |
| HSV | hsv(222, 75%, 77%) |
| CMYK | cmyk(75%, 52.6%, 0%, 23.1%) |
| CIE-LAB | lab(41.95, 21.28, -58.23) |
| CIE-LCH | lch(41.95, 61.99, 290.07°) |
| OKLab | oklab(50.7% -0.0178 -0.1676) |
| OKLCH | oklch(50.7% 0.169 263.9) |
| XYZ | xyz(15.1412, 12.4655, 53.8219) |
| Luminance | 0.1247 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 3.55
Sapphire
#0F52BA
ΔE00 4.14
Azul
#1D5DEC
ΔE00 4.78
French Blue
#436BAD
ΔE00 5.47
Royal Blue
#4169E1
ΔE00 5.80
Warm Blue
#4B57DB
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#315DC4 #C49831
analogous
#31A6C4 #315DC4 #4F31C4
triadic
#315DC4 #C4315D #5DC431
tetradic
#315DC4 #C431A6 #C49831 #31C44F
square
#315DC4 #C431A6 #C49831 #31C44F
split-complementary
#315DC4 #C44F31 #A6C431
monochromatic
#192F62 #254693 #315DC4 #5C81D6 #8DA7E2
Accessibility & contrast
On white
6.01
#315DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#315DC4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #315DC4
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##315DC4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##315DC4 | 1.00 | 6.01 | 3.49 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#146AC8
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #315dc4; /* rgb */ color: rgb(49, 93, 196); /* oklch */ color: oklch(50.7% 0.169 263.9);
Tailwind
colors: {
custom: {
50: '#7e8ad7',
500: '#315dc4',
950: '#000000',
},
}SCSS
$custom: #315dc4; $custom-light: #7e8ad7; $custom-dark: #000000;
JSON
{
"hex": "#315dc4",
"rgb": {
"r": 49,
"g": 93,
"b": 196
},
"hsl": {
"h": 222.041,
"s": 60,
"l": 48.039
},
"oklch": {
"l": 0.50704,
"c": 0.16859,
"h": 263.9
},
"luminance": 0.12467
}Semantic roles & 50–950 ramp
primary
#315DC4
secondary
#CDB784
accent
#B445E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83