#3157B8#3157B8
#3157B8 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.160 H 264.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).
Color values
| HEX | #3157B8 |
|---|---|
| RGB | rgb(49, 87, 184) |
| HSL | hsl(223, 58%, 46%) |
| HSV | hsv(223, 73%, 72%) |
| CMYK | cmyk(73.4%, 52.7%, 0%, 27.8%) |
| CIE-LAB | lab(39.46, 20.68, -55.26) |
| CIE-LCH | lch(39.46, 59.00, 290.52°) |
| OKLab | oklab(48.55% -0.0142 -0.159) |
| OKLCH | oklch(48.55% 0.16 264.9) |
| XYZ | xyz(13.3235, 10.9286, 46.7454) |
| Luminance | 0.1093 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.51
Denim
#1560BD
ΔE00 4.65
Denim Blue
#3B5B92
ΔE00 5.15
Cobalt
#0047AB
ΔE00 5.61
Dusky Blue
#475F94
ΔE00 5.96
Dusk Blue
#26538D
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157B8 #B89231
analogous
#319AB8 #3157B8 #4E31B8
triadic
#3157B8 #B83157 #57B831
tetradic
#3157B8 #B8319A #B89231 #31B84E
square
#3157B8 #B8319A #B89231 #31B84E
split-complementary
#3157B8 #B84E31 #9AB831
monochromatic
#172957 #244088 #3157B8 #5578D2 #859EDE
Accessibility & contrast
On white
6.59
#3157B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#3157B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157B8
6.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157B8 | 1.00 | 6.59 | 3.19 | 6.59 |
| #FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1463BB
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #3157b8; /* rgb */ color: rgb(49, 87, 184); /* oklch */ color: oklch(48.5% 0.160 264.9);
Tailwind
colors: {
custom: {
50: '#7b85ce',
500: '#3157b8',
950: '#000000',
},
}SCSS
$custom: #3157b8; $custom-light: #7b85ce; $custom-dark: #000000;
JSON
{
"hex": "#3157b8",
"rgb": {
"r": 49,
"g": 87,
"b": 184
},
"hsl": {
"h": 223.111,
"s": 57.94,
"l": 45.686
},
"oklch": {
"l": 0.48548,
"c": 0.15964,
"h": 264.9
},
"luminance": 0.1093
}Semantic roles & 50–950 ramp
primary
#3157B8
secondary
#C8B37D
accent
#B647E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82