#315AC2#315AC2
#315AC2 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.170 H 264.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #315AC2 |
|---|---|
| RGB | rgb(49, 90, 194) |
| HSL | hsl(223, 60%, 48%) |
| HSV | hsv(223, 75%, 76%) |
| CMYK | cmyk(74.7%, 53.6%, 0%, 23.9%) |
| CIE-LAB | lab(40.99, 22.48, -58.62) |
| CIE-LCH | lch(40.99, 62.78, 290.98°) |
| OKLab | oklab(49.93% -0.0157 -0.1688) |
| OKLCH | oklch(49.93% 0.17 264.7) |
| XYZ | xyz(14.6569, 11.8587, 52.5450) |
| Luminance | 0.1186 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.41
Denim
#1560BD
ΔE00 4.18
Azul
#1D5DEC
ΔE00 5.13
Warm Blue
#4B57DB
ΔE00 5.65
Denim Blue
#3B5B92
ΔE00 6.08
French Blue
#436BAD
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#315AC2 #C29931
analogous
#31A3C2 #315AC2 #5031C2
triadic
#315AC2 #C2315A #5AC231
tetradic
#315AC2 #C231A3 #C29931 #31C250
square
#315AC2 #C231A3 #C29931 #31C250
split-complementary
#315AC2 #C25031 #A3C231
monochromatic
#182D60 #254391 #315AC2 #5B7DD6 #8CA4E2
Accessibility & contrast
On white
6.23
#315AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#315AC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #315AC2
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##315AC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##315AC2 | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0668C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #315ac2; /* rgb */ color: rgb(49, 90, 194); /* oklch */ color: oklch(49.9% 0.170 264.7);
Tailwind
colors: {
custom: {
50: '#7d88d5',
500: '#315ac2',
950: '#000000',
},
}SCSS
$custom: #315ac2; $custom-light: #7d88d5; $custom-dark: #000000;
JSON
{
"hex": "#315ac2",
"rgb": {
"r": 49,
"g": 90,
"b": 194
},
"hsl": {
"h": 223.034,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.49934,
"c": 0.16957,
"h": 264.7
},
"luminance": 0.1186
}Semantic roles & 50–950 ramp
primary
#315AC2
secondary
#CCB783
accent
#B645E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83