#3157C2#3157C2
#3157C2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.3% C 0.173 H 265.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #3157C2 |
|---|---|
| RGB | rgb(49, 87, 194) |
| HSL | hsl(224, 60%, 48%) |
| HSV | hsv(224, 75%, 76%) |
| CMYK | cmyk(74.7%, 55.2%, 0%, 23.9%) |
| CIE-LAB | lab(40.18, 24.43, -59.92) |
| CIE-LCH | lch(40.18, 64.71, 292.18°) |
| OKLab | oklab(49.33% -0.0134 -0.1727) |
| OKLCH | oklch(49.33% 0.173 265.6) |
| XYZ | xyz(14.4090, 11.3628, 52.4623) |
| Luminance | 0.1136 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.07
Denim
#1560BD
ΔE00 5.06
Warm Blue
#4B57DB
ΔE00 5.30
Azul
#1D5DEC
ΔE00 5.41
Cobalt
#0047AB
ΔE00 6.23
Denim Blue
#3B5B92
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157C2 #C29C31
analogous
#319FC2 #3157C2 #5431C2
triadic
#3157C2 #C23157 #57C231
tetradic
#3157C2 #C2319F #C29C31 #31C254
square
#3157C2 #C2319F #C29C31 #31C254
split-complementary
#3157C2 #C25431 #9FC231
monochromatic
#182B60 #254191 #3157C2 #5B7BD6 #8CA2E2
Accessibility & contrast
On white
6.42
#3157C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#3157C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157C2
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157C2 | 1.00 | 6.42 | 3.27 | 6.42 |
| #FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3157c2; /* rgb */ color: rgb(49, 87, 194); /* oklch */ color: oklch(49.3% 0.173 265.6);
Tailwind
colors: {
custom: {
50: '#7d85d5',
500: '#3157c2',
950: '#000000',
},
}SCSS
$custom: #3157c2; $custom-light: #7d85d5; $custom-dark: #000000;
JSON
{
"hex": "#3157c2",
"rgb": {
"r": 49,
"g": 87,
"b": 194
},
"hsl": {
"h": 224.276,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.49325,
"c": 0.17325,
"h": 265.6
},
"luminance": 0.11364
}Semantic roles & 50–950 ramp
primary
#3157C2
secondary
#CCB983
accent
#B945E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83