#3157C3#3157C3
#3157C3 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.4% C 0.175 H 265.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).
Color values
| HEX | #3157C3 |
|---|---|
| RGB | rgb(49, 87, 195) |
| HSL | hsl(224, 60%, 48%) |
| HSV | hsv(224, 75%, 76%) |
| CMYK | cmyk(74.9%, 55.4%, 0%, 23.5%) |
| CIE-LAB | lab(40.26, 24.80, -60.38) |
| CIE-LCH | lch(40.26, 65.28, 292.33°) |
| OKLab | oklab(49.41% -0.0133 -0.1741) |
| OKLCH | oklch(49.41% 0.175 265.6) |
| XYZ | xyz(14.5217, 11.4079, 53.0558) |
| Luminance | 0.1141 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.15
Denim
#1560BD
ΔE00 5.12
Warm Blue
#4B57DB
ΔE00 5.18
Azul
#1D5DEC
ΔE00 5.29
Cobalt
#0047AB
ΔE00 6.31
Denim Blue
#3B5B92
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157C3 #C39D31
analogous
#31A0C3 #3157C3 #5431C3
triadic
#3157C3 #C33157 #57C331
tetradic
#3157C3 #C331A0 #C39D31 #31C354
square
#3157C3 #C331A0 #C39D31 #31C354
split-complementary
#3157C3 #C35431 #A0C331
monochromatic
#182B61 #254192 #3157C3 #5B7BD6 #8CA3E2
Accessibility & contrast
On white
6.40
#3157C3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#3157C3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157C3
6.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157C3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157C3 | 1.00 | 6.40 | 3.28 | 6.40 |
| #FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C7
Deuteranopia (green-blind)
#0058C1
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3157c3; /* rgb */ color: rgb(49, 87, 195); /* oklch */ color: oklch(49.4% 0.175 265.6);
Tailwind
colors: {
custom: {
50: '#7e85d6',
500: '#3157c3',
950: '#000000',
},
}SCSS
$custom: #3157c3; $custom-light: #7e85d6; $custom-dark: #000000;
JSON
{
"hex": "#3157c3",
"rgb": {
"r": 49,
"g": 87,
"b": 195
},
"hsl": {
"h": 224.384,
"s": 59.836,
"l": 47.843
},
"oklch": {
"l": 0.49405,
"c": 0.1746,
"h": 265.6
},
"luminance": 0.11409
}Semantic roles & 50–950 ramp
primary
#3157C3
secondary
#CCB983
accent
#BA45E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83