#3158B2#3158B2
#3158B2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.150 H 264.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3158B2 |
|---|---|
| RGB | rgb(49, 88, 178) |
| HSL | hsl(222, 57%, 45%) |
| HSV | hsv(222, 72%, 70%) |
| CMYK | cmyk(72.5%, 50.6%, 0%, 30.2%) |
| CIE-LAB | lab(39.32, 17.77, -51.96) |
| CIE-LCH | lch(39.32, 54.91, 288.88°) |
| OKLab | oklab(48.31% -0.0157 -0.1493) |
| OKLCH | oklch(48.31% 0.15 264) |
| XYZ | xyz(12.7894, 10.8454, 43.5302) |
| Luminance | 0.1085 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.65
Denim
#1560BD
ΔE00 4.23
Denim Blue
#3B5B92
ΔE00 4.30
Dusky Blue
#475F94
ΔE00 5.29
Dusk Blue
#26538D
ΔE00 5.41
Cobalt
#0047AB
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158B2 #B28B31
analogous
#3199B2 #3158B2 #4A31B2
triadic
#3158B2 #B23158 #58B231
tetradic
#3158B2 #B23199 #B28B31 #31B24A
square
#3158B2 #B23199 #B28B31 #31B24A
split-complementary
#3158B2 #B24A31 #99B231
monochromatic
#172952 #244082 #3158B2 #5177CF #819DDC
Accessibility & contrast
On white
6.63
#3158B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#3158B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158B2
6.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158B2 | 1.00 | 6.63 | 3.17 | 6.63 |
| #FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #3158b2; /* rgb */ color: rgb(49, 88, 178); /* oklch */ color: oklch(48.3% 0.150 264.0);
Tailwind
colors: {
custom: {
50: '#7a86ca',
500: '#3158b2',
950: '#000000',
},
}SCSS
$custom: #3158b2; $custom-light: #7a86ca; $custom-dark: #000000;
JSON
{
"hex": "#3158b2",
"rgb": {
"r": 49,
"g": 88,
"b": 178
},
"hsl": {
"h": 221.86,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.48308,
"c": 0.1501,
"h": 264
},
"luminance": 0.10847
}Semantic roles & 50–950 ramp
primary
#3158B2
secondary
#C5AE79
accent
#B248E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82