#3158C2#3158C2
#3158C2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.5% C 0.172 H 265.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #3158C2 |
|---|---|
| RGB | rgb(49, 88, 194) |
| HSL | hsl(224, 60%, 48%) |
| HSV | hsv(224, 75%, 76%) |
| CMYK | cmyk(74.7%, 54.6%, 0%, 23.9%) |
| CIE-LAB | lab(40.45, 23.78, -59.49) |
| CIE-LCH | lch(40.45, 64.06, 291.79°) |
| OKLab | oklab(49.53% -0.0141 -0.1714) |
| OKLCH | oklch(49.53% 0.172 265.3) |
| XYZ | xyz(14.4905, 11.5259, 52.4895) |
| Luminance | 0.1153 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.15
Denim
#1560BD
ΔE00 4.76
Azul
#1D5DEC
ΔE00 5.30
Warm Blue
#4B57DB
ΔE00 5.40
Denim Blue
#3B5B92
ΔE00 6.24
Cobalt
#0047AB
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158C2 #C29B31
analogous
#31A1C2 #3158C2 #5231C2
triadic
#3158C2 #C23158 #58C231
tetradic
#3158C2 #C231A1 #C29B31 #31C252
square
#3158C2 #C231A1 #C29B31 #31C252
split-complementary
#3158C2 #C25231 #A1C231
monochromatic
#182C60 #254291 #3158C2 #5B7CD6 #8CA3E2
Accessibility & contrast
On white
6.35
#3158C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#3158C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158C2
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158C2 | 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)
#0066C6
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3158c2; /* rgb */ color: rgb(49, 88, 194); /* oklch */ color: oklch(49.5% 0.172 265.3);
Tailwind
colors: {
custom: {
50: '#7d86d5',
500: '#3158c2',
950: '#000000',
},
}SCSS
$custom: #3158c2; $custom-light: #7d86d5; $custom-dark: #000000;
JSON
{
"hex": "#3158c2",
"rgb": {
"r": 49,
"g": 88,
"b": 194
},
"hsl": {
"h": 223.862,
"s": 59.671,
"l": 47.647
},
"oklch": {
"l": 0.49527,
"c": 0.17202,
"h": 265.3
},
"luminance": 0.11527
}Semantic roles & 50–950 ramp
primary
#3158C2
secondary
#CCB883
accent
#B845E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83