#3157B2#3157B2
#3157B2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.151 H 264.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #3157B2 |
|---|---|
| RGB | rgb(49, 87, 178) |
| HSL | hsl(222, 57%, 45%) |
| HSV | hsv(222, 72%, 70%) |
| CMYK | cmyk(72.5%, 51.1%, 0%, 30.2%) |
| CIE-LAB | lab(39.04, 18.43, -52.41) |
| CIE-LCH | lch(39.04, 55.55, 289.37°) |
| OKLab | oklab(48.1% -0.0148 -0.1506) |
| OKLCH | oklch(48.1% 0.151 264.4) |
| XYZ | xyz(12.7079, 10.6824, 43.5030) |
| Luminance | 0.1068 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.50
Denim Blue
#3B5B92
ΔE00 4.43
Denim
#1560BD
ΔE00 4.55
Cobalt
#0047AB
ΔE00 5.39
Dusk Blue
#26538D
ΔE00 5.43
Dusky Blue
#475F94
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157B2 #B28C31
analogous
#3197B2 #3157B2 #4C31B2
triadic
#3157B2 #B23157 #57B231
tetradic
#3157B2 #B23197 #B28C31 #31B24C
square
#3157B2 #B23197 #B28C31 #31B24C
split-complementary
#3157B2 #B24C31 #97B231
monochromatic
#172852 #244082 #3157B2 #5176CF #819CDC
Accessibility & contrast
On white
6.69
#3157B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#3157B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157B2
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157B2 | 1.00 | 6.69 | 3.14 | 6.69 |
| #FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3157b2; /* rgb */ color: rgb(49, 87, 178); /* oklch */ color: oklch(48.1% 0.151 264.4);
Tailwind
colors: {
custom: {
50: '#7a85ca',
500: '#3157b2',
950: '#000000',
},
}SCSS
$custom: #3157b2; $custom-light: #7a85ca; $custom-dark: #000000;
JSON
{
"hex": "#3157b2",
"rgb": {
"r": 49,
"g": 87,
"b": 178
},
"hsl": {
"h": 222.326,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.48095,
"c": 0.15135,
"h": 264.4
},
"luminance": 0.10684
}Semantic roles & 50–950 ramp
primary
#3157B2
secondary
#C5AF79
accent
#B348E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82