#3157B1#3157B1
#3157B1 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.150 H 264.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3157B1 |
|---|---|
| RGB | rgb(49, 87, 177) |
| HSL | hsl(222, 57%, 44%) |
| HSV | hsv(222, 72%, 69%) |
| CMYK | cmyk(72.3%, 50.8%, 0%, 30.6%) |
| CIE-LAB | lab(38.97, 18.05, -51.93) |
| CIE-LCH | lch(38.97, 54.98, 289.17°) |
| OKLab | oklab(48.02% -0.015 -0.1492) |
| OKLCH | oklch(48.02% 0.15 264.3) |
| XYZ | xyz(12.6078, 10.6424, 42.9762) |
| Luminance | 0.1064 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.53
Denim Blue
#3B5B92
ΔE00 4.31
Denim
#1560BD
ΔE00 4.55
Dusk Blue
#26538D
ΔE00 5.30
Dusky Blue
#475F94
ΔE00 5.34
Cobalt
#0047AB
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157B1 #B18B31
analogous
#3197B1 #3157B1 #4B31B1
triadic
#3157B1 #B13157 #57B131
tetradic
#3157B1 #B13197 #B18B31 #31B14B
square
#3157B1 #B13197 #B18B31 #31B14B
split-complementary
#3157B1 #B14B31 #97B131
monochromatic
#162851 #243F81 #3157B1 #5176CF #809CDC
Accessibility & contrast
On white
6.71
#3157B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#3157B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157B1
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157B1 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2162B4
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3157b1; /* rgb */ color: rgb(49, 87, 177); /* oklch */ color: oklch(48.0% 0.150 264.3);
Tailwind
colors: {
custom: {
50: '#7a85c9',
500: '#3157b1',
950: '#000000',
},
}SCSS
$custom: #3157b1; $custom-light: #7a85c9; $custom-dark: #000000;
JSON
{
"hex": "#3157b1",
"rgb": {
"r": 49,
"g": 87,
"b": 177
},
"hsl": {
"h": 222.188,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.48021,
"c": 0.14997,
"h": 264.3
},
"luminance": 0.10644
}Semantic roles & 50–950 ramp
primary
#3157B1
secondary
#C5AE79
accent
#B348E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82