#3157B3#3157B3
#3157B3 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.153 H 264.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).
Color values
| HEX | #3157B3 |
|---|---|
| RGB | rgb(49, 87, 179) |
| HSL | hsl(222, 57%, 45%) |
| HSV | hsv(222, 73%, 70%) |
| CMYK | cmyk(72.6%, 51.4%, 0%, 29.8%) |
| CIE-LAB | lab(39.11, 18.80, -52.88) |
| CIE-LCH | lch(39.11, 56.13, 289.57°) |
| OKLab | oklab(48.17% -0.0147 -0.152) |
| OKLCH | oklch(48.17% 0.153 264.5) |
| XYZ | xyz(12.8086, 10.7227, 44.0337) |
| Luminance | 0.1072 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.48
Denim Blue
#3B5B92
ΔE00 4.55
Denim
#1560BD
ΔE00 4.56
Cobalt
#0047AB
ΔE00 5.42
Dusky Blue
#475F94
ΔE00 5.51
Dusk Blue
#26538D
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157B3 #B38D31
analogous
#3198B3 #3157B3 #4C31B3
triadic
#3157B3 #B33157 #57B331
tetradic
#3157B3 #B33198 #B38D31 #31B34C
square
#3157B3 #B33198 #B38D31 #31B34C
split-complementary
#3157B3 #B34C31 #98B331
monochromatic
#172853 #244083 #3157B3 #5276D0 #829CDD
Accessibility & contrast
On white
6.68
#3157B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#3157B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157B3
6.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157B3 | 1.00 | 6.68 | 3.14 | 6.68 |
| #FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E62B6
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3157b3; /* rgb */ color: rgb(49, 87, 179); /* oklch */ color: oklch(48.2% 0.153 264.5);
Tailwind
colors: {
custom: {
50: '#7a85ca',
500: '#3157b3',
950: '#000000',
},
}SCSS
$custom: #3157b3; $custom-light: #7a85ca; $custom-dark: #000000;
JSON
{
"hex": "#3157b3",
"rgb": {
"r": 49,
"g": 87,
"b": 179
},
"hsl": {
"h": 222.462,
"s": 57.018,
"l": 44.706
},
"oklch": {
"l": 0.4817,
"c": 0.15274,
"h": 264.5
},
"luminance": 0.10724
}Semantic roles & 50–950 ramp
primary
#3157B3
secondary
#C6B07A
accent
#B448E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82