#315AB5#315AB5
#315AB5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.0% C 0.152 H 263.6°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).
Color values
| HEX | #315AB5 |
|---|---|
| RGB | rgb(49, 90, 181) |
| HSL | hsl(221, 57%, 45%) |
| HSV | hsv(221, 73%, 71%) |
| CMYK | cmyk(72.9%, 50.3%, 0%, 29%) |
| CIE-LAB | lab(40.08, 17.59, -52.49) |
| CIE-LCH | lch(40.08, 55.36, 288.53°) |
| OKLab | oklab(48.95% -0.017 -0.1508) |
| OKLCH | oklch(48.95% 0.152 263.6) |
| XYZ | xyz(13.2603, 11.3001, 45.1894) |
| Luminance | 0.1130 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.00
Denim
#1560BD
ΔE00 3.63
Denim Blue
#3B5B92
ΔE00 4.49
Dusky Blue
#475F94
ΔE00 5.33
Dusk Blue
#26538D
ΔE00 5.81
French Blue
#436BAD
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#315AB5 #B58C31
analogous
#319CB5 #315AB5 #4A31B5
triadic
#315AB5 #B5315A #5AB531
tetradic
#315AB5 #B5319C #B58C31 #31B54A
square
#315AB5 #B5319C #B58C31 #31B54A
split-complementary
#315AB5 #B54A31 #9CB531
monochromatic
#172A55 #244285 #315AB5 #537AD0 #839FDD
Accessibility & contrast
On white
6.44
#315AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#315AB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #315AB5
6.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##315AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##315AB5 | 1.00 | 6.44 | 3.26 | 6.44 |
| #FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2465B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #315ab5; /* rgb */ color: rgb(49, 90, 181); /* oklch */ color: oklch(49.0% 0.152 263.6);
Tailwind
colors: {
custom: {
50: '#7a88cc',
500: '#315ab5',
950: '#000000',
},
}SCSS
$custom: #315ab5; $custom-light: #7a88cc; $custom-dark: #000000;
JSON
{
"hex": "#315ab5",
"rgb": {
"r": 49,
"g": 90,
"b": 181
},
"hsl": {
"h": 221.364,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.48954,
"c": 0.15178,
"h": 263.6
},
"luminance": 0.11301
}Semantic roles & 50–950 ramp
primary
#315AB5
secondary
#C7AF7B
accent
#B147E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82