#3157C6#3157C6
#3157C6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.179 H 265.8°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #3157C6 |
|---|---|
| RGB | rgb(49, 87, 198) |
| HSL | hsl(225, 60%, 48%) |
| HSV | hsv(225, 75%, 78%) |
| CMYK | cmyk(75.3%, 56.1%, 0%, 22.4%) |
| CIE-LAB | lab(40.48, 25.92, -61.76) |
| CIE-LCH | lch(40.48, 66.98, 292.77°) |
| OKLab | oklab(49.64% -0.0131 -0.1781) |
| OKLCH | oklch(49.64% 0.179 265.8) |
| XYZ | xyz(14.8643, 11.5449, 54.8601) |
| Luminance | 0.1155 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.42
Warm Blue
#4B57DB
ΔE00 4.83
Azul
#1D5DEC
ΔE00 4.95
Denim
#1560BD
ΔE00 5.31
Blue Blue
#2242C7
ΔE00 6.49
Cobalt
#0047AB
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157C6 #C6A031
analogous
#31A1C6 #3157C6 #5531C6
triadic
#3157C6 #C63157 #57C631
tetradic
#3157C6 #C631A1 #C6A031 #31C655
square
#3157C6 #C631A1 #C6A031 #31C655
split-complementary
#3157C6 #C65531 #A1C631
monochromatic
#192C64 #254195 #3157C6 #5D7CD7 #8EA4E3
Accessibility & contrast
On white
6.35
#3157C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#3157C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157C6
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157C6 | 1.00 | 6.35 | 3.31 | 6.35 |
| #FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3157c6; /* rgb */ color: rgb(49, 87, 198); /* oklch */ color: oklch(49.6% 0.179 265.8);
Tailwind
colors: {
custom: {
50: '#7e85d8',
500: '#3157c6',
950: '#000000',
},
}SCSS
$custom: #3157c6; $custom-light: #7e85d8; $custom-dark: #000000;
JSON
{
"hex": "#3157c6",
"rgb": {
"r": 49,
"g": 87,
"b": 198
},
"hsl": {
"h": 224.698,
"s": 60.324,
"l": 48.431
},
"oklch": {
"l": 0.49644,
"c": 0.17862,
"h": 265.8
},
"luminance": 0.11547
}Semantic roles & 50–950 ramp
primary
#3157C6
secondary
#CEBB85
accent
#BB44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B15
muted
#7C7C83