#315BB5#315BB5
#315BB5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.151 H 263.2°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #315BB5 |
|---|---|
| RGB | rgb(49, 91, 181) |
| HSL | hsl(221, 57%, 45%) |
| HSV | hsv(221, 73%, 71%) |
| CMYK | cmyk(72.9%, 49.7%, 0%, 29%) |
| CIE-LAB | lab(40.36, 16.94, -52.04) |
| CIE-LCH | lch(40.36, 54.73, 288.03°) |
| OKLab | oklab(49.17% -0.0179 -0.1495) |
| OKLCH | oklch(49.17% 0.151 263.2) |
| XYZ | xyz(13.3452, 11.4699, 45.2177) |
| Luminance | 0.1147 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.24
Denim
#1560BD
ΔE00 3.33
Denim Blue
#3B5B92
ΔE00 4.44
Dusky Blue
#475F94
ΔE00 5.26
French Blue
#436BAD
ΔE00 5.53
Denim (survey)
#3B638C
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#315BB5 #B58B31
analogous
#319DB5 #315BB5 #4931B5
triadic
#315BB5 #B5315B #5BB531
tetradic
#315BB5 #B5319D #B58B31 #31B549
square
#315BB5 #B5319D #B58B31 #31B549
split-complementary
#315BB5 #B54931 #9DB531
monochromatic
#172B55 #244385 #315BB5 #537BD0 #83A0DD
Accessibility & contrast
On white
6.37
#315BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#315BB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #315BB5
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##315BB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##315BB5 | 1.00 | 6.37 | 3.29 | 6.37 |
| #FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2766B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #315bb5; /* rgb */ color: rgb(49, 91, 181); /* oklch */ color: oklch(49.2% 0.151 263.2);
Tailwind
colors: {
custom: {
50: '#7a88cc',
500: '#315bb5',
950: '#000000',
},
}SCSS
$custom: #315bb5; $custom-light: #7a88cc; $custom-dark: #000000;
JSON
{
"hex": "#315bb5",
"rgb": {
"r": 49,
"g": 91,
"b": 181
},
"hsl": {
"h": 220.909,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.49167,
"c": 0.15055,
"h": 263.2
},
"luminance": 0.11471
}Semantic roles & 50–950 ramp
primary
#315BB5
secondary
#C7AF7B
accent
#B047E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82