#3157C5#3157C5
#3157C5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.177 H 265.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #3157C5 |
|---|---|
| RGB | rgb(49, 87, 197) |
| HSL | hsl(225, 60%, 48%) |
| HSV | hsv(225, 75%, 77%) |
| CMYK | cmyk(75.1%, 55.8%, 0%, 22.7%) |
| CIE-LAB | lab(40.41, 25.55, -61.30) |
| CIE-LCH | lch(40.41, 66.41, 292.62°) |
| OKLab | oklab(49.56% -0.0132 -0.1768) |
| OKLCH | oklch(49.56% 0.177 265.7) |
| XYZ | xyz(14.7493, 11.4989, 54.2547) |
| Luminance | 0.1150 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.33
Warm Blue
#4B57DB
ΔE00 4.94
Azul
#1D5DEC
ΔE00 5.06
Denim
#1560BD
ΔE00 5.24
Cobalt
#0047AB
ΔE00 6.47
Blue Blue
#2242C7
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157C5 #C59F31
analogous
#31A1C5 #3157C5 #5531C5
triadic
#3157C5 #C53157 #57C531
tetradic
#3157C5 #C531A1 #C59F31 #31C555
square
#3157C5 #C531A1 #C59F31 #31C555
split-complementary
#3157C5 #C55531 #A1C531
monochromatic
#192C63 #254194 #3157C5 #5D7CD7 #8EA3E3
Accessibility & contrast
On white
6.36
#3157C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#3157C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157C5
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157C5 | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#0059C3
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3157c5; /* rgb */ color: rgb(49, 87, 197); /* oklch */ color: oklch(49.6% 0.177 265.7);
Tailwind
colors: {
custom: {
50: '#7e85d7',
500: '#3157c5',
950: '#000000',
},
}SCSS
$custom: #3157c5; $custom-light: #7e85d7; $custom-dark: #000000;
JSON
{
"hex": "#3157c5",
"rgb": {
"r": 49,
"g": 87,
"b": 197
},
"hsl": {
"h": 224.595,
"s": 60.163,
"l": 48.235
},
"oklch": {
"l": 0.49564,
"c": 0.17728,
"h": 265.7
},
"luminance": 0.11501
}Semantic roles & 50–950 ramp
primary
#3157C5
secondary
#CDBB85
accent
#BB44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B14
muted
#7C7C83