#3158C0#3158C0
#3158C0 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.4% C 0.169 H 265.2°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).
Color values
| HEX | #3158C0 |
|---|---|
| RGB | rgb(49, 88, 192) |
| HSL | hsl(224, 59%, 47%) |
| HSV | hsv(224, 74%, 75%) |
| CMYK | cmyk(74.5%, 54.2%, 0%, 24.7%) |
| CIE-LAB | lab(40.31, 23.03, -58.56) |
| CIE-LCH | lch(40.31, 62.93, 291.47°) |
| OKLab | oklab(49.37% -0.0143 -0.1687) |
| OKLCH | oklch(49.37% 0.169 265.2) |
| XYZ | xyz(14.2674, 11.4366, 51.3145) |
| Luminance | 0.1144 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.00
Denim
#1560BD
ΔE00 4.65
Azul
#1D5DEC
ΔE00 5.54
Warm Blue
#4B57DB
ΔE00 5.64
Denim Blue
#3B5B92
ΔE00 6.00
Cobalt
#0047AB
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158C0 #C09931
analogous
#31A0C0 #3158C0 #5131C0
triadic
#3158C0 #C03158 #58C031
tetradic
#3158C0 #C031A0 #C09931 #31C051
square
#3158C0 #C031A0 #C09931 #31C051
split-complementary
#3158C0 #C05131 #A0C031
monochromatic
#182B5E #25428F #3158C0 #597BD5 #8AA2E1
Accessibility & contrast
On white
6.39
#3158C0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#3158C0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158C0
6.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158C0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158C0 | 1.00 | 6.39 | 3.29 | 6.39 |
| #FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#0059BE
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #3158c0; /* rgb */ color: rgb(49, 88, 192); /* oklch */ color: oklch(49.4% 0.169 265.2);
Tailwind
colors: {
custom: {
50: '#7d86d4',
500: '#3158c0',
950: '#000000',
},
}SCSS
$custom: #3158c0; $custom-light: #7d86d4; $custom-dark: #000000;
JSON
{
"hex": "#3158c0",
"rgb": {
"r": 49,
"g": 88,
"b": 192
},
"hsl": {
"h": 223.636,
"s": 59.336,
"l": 47.255
},
"oklch": {
"l": 0.49371,
"c": 0.16932,
"h": 265.2
},
"luminance": 0.11438
}Semantic roles & 50–950 ramp
primary
#3158C0
secondary
#CBB782
accent
#B845E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83