#3157C1#3157C1
#3157C1 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.2% C 0.172 H 265.5°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).
Color values
| HEX | #3157C1 |
|---|---|
| RGB | rgb(49, 87, 193) |
| HSL | hsl(224, 60%, 47%) |
| HSV | hsv(224, 75%, 76%) |
| CMYK | cmyk(74.6%, 54.9%, 0%, 24.3%) |
| CIE-LAB | lab(40.11, 24.06, -59.46) |
| CIE-LCH | lch(40.11, 64.14, 292.03°) |
| OKLab | oklab(49.25% -0.0135 -0.1714) |
| OKLCH | oklch(49.25% 0.172 265.5) |
| XYZ | xyz(14.2971, 11.3180, 51.8728) |
| Luminance | 0.1132 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.99
Denim
#1560BD
ΔE00 5.01
Warm Blue
#4B57DB
ΔE00 5.42
Azul
#1D5DEC
ΔE00 5.53
Cobalt
#0047AB
ΔE00 6.16
Denim Blue
#3B5B92
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157C1 #C19B31
analogous
#319FC1 #3157C1 #5331C1
triadic
#3157C1 #C13157 #57C131
tetradic
#3157C1 #C1319F #C19B31 #31C153
square
#3157C1 #C1319F #C19B31 #31C153
split-complementary
#3157C1 #C15331 #9FC131
monochromatic
#182B5F #254190 #3157C1 #5A7BD5 #8BA2E2
Accessibility & contrast
On white
6.43
#3157C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#3157C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157C1
6.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157C1 | 1.00 | 6.43 | 3.26 | 6.43 |
| #FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C5
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3157c1; /* rgb */ color: rgb(49, 87, 193); /* oklch */ color: oklch(49.2% 0.172 265.5);
Tailwind
colors: {
custom: {
50: '#7d85d4',
500: '#3157c1',
950: '#000000',
},
}SCSS
$custom: #3157c1; $custom-light: #7d85d4; $custom-dark: #000000;
JSON
{
"hex": "#3157c1",
"rgb": {
"r": 49,
"g": 87,
"b": 193
},
"hsl": {
"h": 224.167,
"s": 59.504,
"l": 47.451
},
"oklch": {
"l": 0.49246,
"c": 0.1719,
"h": 265.5
},
"luminance": 0.1132
}Semantic roles & 50–950 ramp
primary
#3157C1
secondary
#CCB882
accent
#B945E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83