#3158B1#3158B1
#3158B1 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.2% C 0.149 H 263.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #3158B1 |
|---|---|
| RGB | rgb(49, 88, 177) |
| HSL | hsl(222, 57%, 44%) |
| HSV | hsv(222, 72%, 69%) |
| CMYK | cmyk(72.3%, 50.3%, 0%, 30.6%) |
| CIE-LAB | lab(39.25, 17.40, -51.48) |
| CIE-LCH | lch(39.25, 54.34, 288.67°) |
| OKLab | oklab(48.23% -0.0158 -0.1479) |
| OKLCH | oklch(48.23% 0.149 263.9) |
| XYZ | xyz(12.6894, 10.8054, 43.0033) |
| Luminance | 0.1081 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.68
Denim Blue
#3B5B92
ΔE00 4.18
Denim
#1560BD
ΔE00 4.23
Dusky Blue
#475F94
ΔE00 5.20
Dusk Blue
#26538D
ΔE00 5.29
Cobalt
#0047AB
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158B1 #B18A31
analogous
#3198B1 #3158B1 #4A31B1
triadic
#3158B1 #B13158 #58B131
tetradic
#3158B1 #B13198 #B18A31 #31B14A
square
#3158B1 #B13198 #B18A31 #31B14A
split-complementary
#3158B1 #B14A31 #98B131
monochromatic
#162851 #244081 #3158B1 #5177CF #809CDC
Accessibility & contrast
On white
6.64
#3158B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#3158B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158B1
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158B1 | 1.00 | 6.64 | 3.16 | 6.64 |
| #FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2463B4
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3158b1; /* rgb */ color: rgb(49, 88, 177); /* oklch */ color: oklch(48.2% 0.149 263.9);
Tailwind
colors: {
custom: {
50: '#7a86c9',
500: '#3158b1',
950: '#000000',
},
}SCSS
$custom: #3158b1; $custom-light: #7a86c9; $custom-dark: #000000;
JSON
{
"hex": "#3158b1",
"rgb": {
"r": 49,
"g": 88,
"b": 177
},
"hsl": {
"h": 221.719,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.48234,
"c": 0.14871,
"h": 263.9
},
"luminance": 0.10807
}Semantic roles & 50–950 ramp
primary
#3158B1
secondary
#C5AE79
accent
#B248E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82