#3158C6#3158C6
#3158C6 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.8% C 0.177 H 265.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).
Color values
| HEX | #3158C6 |
|---|---|
| RGB | rgb(49, 88, 198) |
| HSL | hsl(224, 60%, 48%) |
| HSV | hsv(224, 75%, 78%) |
| CMYK | cmyk(75.3%, 55.6%, 0%, 22.4%) |
| CIE-LAB | lab(40.75, 25.27, -61.33) |
| CIE-LCH | lch(40.75, 66.33, 292.39°) |
| OKLab | oklab(49.84% -0.0139 -0.1769) |
| OKLCH | oklch(49.84% 0.177 265.5) |
| XYZ | xyz(14.9458, 11.7080, 54.8873) |
| Luminance | 0.1171 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.49
Azul
#1D5DEC
ΔE00 4.82
Warm Blue
#4B57DB
ΔE00 4.92
Denim
#1560BD
ΔE00 5.02
Denim Blue
#3B5B92
ΔE00 6.72
Cobalt
#0047AB
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158C6 #C69F31
analogous
#31A2C6 #3158C6 #5431C6
triadic
#3158C6 #C63158 #58C631
tetradic
#3158C6 #C631A2 #C69F31 #31C654
square
#3158C6 #C631A2 #C69F31 #31C654
split-complementary
#3158C6 #C65431 #A2C631
monochromatic
#192C64 #254295 #3158C6 #5D7DD7 #8EA4E3
Accessibility & contrast
On white
6.28
#3158C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#3158C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158C6
6.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158C6 | 1.00 | 6.28 | 3.34 | 6.28 |
| #FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #3158c6; /* rgb */ color: rgb(49, 88, 198); /* oklch */ color: oklch(49.8% 0.177 265.5);
Tailwind
colors: {
custom: {
50: '#7e86d8',
500: '#3158c6',
950: '#000000',
},
}SCSS
$custom: #3158c6; $custom-light: #7e86d8; $custom-dark: #000000;
JSON
{
"hex": "#3158c6",
"rgb": {
"r": 49,
"g": 88,
"b": 198
},
"hsl": {
"h": 224.295,
"s": 60.324,
"l": 48.431
},
"oklch": {
"l": 0.49844,
"c": 0.1774,
"h": 265.5
},
"luminance": 0.1171
}Semantic roles & 50–950 ramp
primary
#3158C6
secondary
#CEBB85
accent
#BA44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B15
muted
#7C7C83