#3157C4#3157C4
#3157C4 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.5% C 0.176 H 265.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #3157C4 |
|---|---|
| RGB | rgb(49, 87, 196) |
| HSL | hsl(224, 60%, 48%) |
| HSV | hsv(224, 75%, 77%) |
| CMYK | cmyk(75%, 55.6%, 0%, 23.1%) |
| CIE-LAB | lab(40.33, 25.17, -60.84) |
| CIE-LCH | lch(40.33, 65.85, 292.48°) |
| OKLab | oklab(49.48% -0.0133 -0.1754) |
| OKLCH | oklch(49.48% 0.176 265.7) |
| XYZ | xyz(14.6351, 11.4533, 53.6532) |
| Luminance | 0.1145 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.24
Warm Blue
#4B57DB
ΔE00 5.06
Azul
#1D5DEC
ΔE00 5.18
Denim
#1560BD
ΔE00 5.18
Cobalt
#0047AB
ΔE00 6.39
Blue Blue
#2242C7
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157C4 #C49E31
analogous
#31A0C4 #3157C4 #5531C4
triadic
#3157C4 #C43157 #57C431
tetradic
#3157C4 #C431A0 #C49E31 #31C455
square
#3157C4 #C431A0 #C49E31 #31C455
split-complementary
#3157C4 #C45531 #A0C431
monochromatic
#192C62 #254193 #3157C4 #5C7CD6 #8DA3E2
Accessibility & contrast
On white
6.38
#3157C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#3157C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157C4
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157C4 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3157c4; /* rgb */ color: rgb(49, 87, 196); /* oklch */ color: oklch(49.5% 0.176 265.7);
Tailwind
colors: {
custom: {
50: '#7e85d7',
500: '#3157c4',
950: '#000000',
},
}SCSS
$custom: #3157c4; $custom-light: #7e85d7; $custom-dark: #000000;
JSON
{
"hex": "#3157c4",
"rgb": {
"r": 49,
"g": 87,
"b": 196
},
"hsl": {
"h": 224.49,
"s": 60,
"l": 48.039
},
"oklch": {
"l": 0.49484,
"c": 0.17594,
"h": 265.7
},
"luminance": 0.11455
}Semantic roles & 50–950 ramp
primary
#3157C4
secondary
#CDBA84
accent
#BA45E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B14
muted
#7C7C83