#3157B9#3157B9
#3157B9 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.6% C 0.161 H 265.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).
Color values
| HEX | #3157B9 |
|---|---|
| RGB | rgb(49, 87, 185) |
| HSL | hsl(223, 58%, 46%) |
| HSV | hsv(223, 74%, 73%) |
| CMYK | cmyk(73.5%, 53%, 0%, 27.5%) |
| CIE-LAB | lab(39.53, 21.06, -55.73) |
| CIE-LCH | lch(39.53, 59.57, 290.70°) |
| OKLab | oklab(48.62% -0.0141 -0.1604) |
| OKLCH | oklch(48.62% 0.161 265) |
| XYZ | xyz(13.4287, 10.9707, 47.2994) |
| Luminance | 0.1097 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.53
Denim
#1560BD
ΔE00 4.68
Denim Blue
#3B5B92
ΔE00 5.27
Cobalt
#0047AB
ΔE00 5.66
Dusky Blue
#475F94
ΔE00 6.06
Dusk Blue
#26538D
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157B9 #B99331
analogous
#319BB9 #3157B9 #4F31B9
triadic
#3157B9 #B93157 #57B931
tetradic
#3157B9 #B9319B #B99331 #31B94F
square
#3157B9 #B9319B #B99331 #31B94F
split-complementary
#3157B9 #B94F31 #9BB931
monochromatic
#172958 #244089 #3157B9 #5578D2 #869FDF
Accessibility & contrast
On white
6.57
#3157B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#3157B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157B9
6.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157B9 | 1.00 | 6.57 | 3.19 | 6.57 |
| #FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1164BC
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #3157b9; /* rgb */ color: rgb(49, 87, 185); /* oklch */ color: oklch(48.6% 0.161 265.0);
Tailwind
colors: {
custom: {
50: '#7b85cf',
500: '#3157b9',
950: '#000000',
},
}SCSS
$custom: #3157b9; $custom-light: #7b85cf; $custom-dark: #000000;
JSON
{
"hex": "#3157b9",
"rgb": {
"r": 49,
"g": 87,
"b": 185
},
"hsl": {
"h": 223.235,
"s": 58.12,
"l": 45.882
},
"oklch": {
"l": 0.48624,
"c": 0.16101,
"h": 265
},
"luminance": 0.10972
}Semantic roles & 50–950 ramp
primary
#3157B9
secondary
#C8B37D
accent
#B646E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82