#315CB7#315CB7
#315CB7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.152 H 263.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #315CB7 |
|---|---|
| RGB | rgb(49, 92, 183) |
| HSL | hsl(221, 58%, 45%) |
| HSV | hsv(221, 73%, 72%) |
| CMYK | cmyk(73.2%, 49.7%, 0%, 28.2%) |
| CIE-LAB | lab(40.78, 17.04, -52.55) |
| CIE-LCH | lch(40.78, 55.24, 287.97°) |
| OKLab | oklab(49.53% -0.0185 -0.1509) |
| OKLCH | oklch(49.53% 0.152 263) |
| XYZ | xyz(13.6380, 11.7247, 46.3349) |
| Luminance | 0.1173 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 3.08
Sapphire
#0F52BA
ΔE00 3.49
Denim Blue
#3B5B92
ΔE00 4.66
French Blue
#436BAD
ΔE00 5.25
Dusky Blue
#475F94
ΔE00 5.39
Denim (survey)
#3B638C
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#315CB7 #B78C31
analogous
#319FB7 #315CB7 #4931B7
triadic
#315CB7 #B7315C #5CB731
tetradic
#315CB7 #B7319F #B78C31 #31B749
square
#315CB7 #B7319F #B78C31 #31B749
split-complementary
#315CB7 #B74931 #9FB731
monochromatic
#172B56 #244487 #315CB7 #547CD1 #84A1DE
Accessibility & contrast
On white
6.28
#315CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#315CB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #315CB7
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##315CB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##315CB7 | 1.00 | 6.28 | 3.35 | 6.28 |
| #FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2767BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #315cb7; /* rgb */ color: rgb(49, 92, 183); /* oklch */ color: oklch(49.5% 0.152 263.0);
Tailwind
colors: {
custom: {
50: '#7b89cd',
500: '#315cb7',
950: '#000000',
},
}SCSS
$custom: #315cb7; $custom-light: #7b89cd; $custom-dark: #000000;
JSON
{
"hex": "#315cb7",
"rgb": {
"r": 49,
"g": 92,
"b": 183
},
"hsl": {
"h": 220.746,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.49527,
"c": 0.15207,
"h": 263
},
"luminance": 0.11726
}Semantic roles & 50–950 ramp
primary
#315CB7
secondary
#C8AF7C
accent
#B047E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82