#3158B5#3158B5
#3158B5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.5% C 0.154 H 264.3°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).
Color values
| HEX | #3158B5 |
|---|---|
| RGB | rgb(49, 88, 181) |
| HSL | hsl(222, 57%, 45%) |
| HSV | hsv(222, 73%, 71%) |
| CMYK | cmyk(72.9%, 51.4%, 0%, 29%) |
| CIE-LAB | lab(39.53, 18.90, -53.39) |
| CIE-LCH | lch(39.53, 56.64, 289.50°) |
| OKLab | oklab(48.53% -0.0154 -0.1535) |
| OKLCH | oklch(48.53% 0.154 264.3) |
| XYZ | xyz(13.0939, 10.9672, 45.1339) |
| Luminance | 0.1097 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.61
Denim
#1560BD
ΔE00 4.26
Denim Blue
#3B5B92
ΔE00 4.66
Dusky Blue
#475F94
ΔE00 5.55
Cobalt
#0047AB
ΔE00 5.75
Dusk Blue
#26538D
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158B5 #B58E31
analogous
#319AB5 #3158B5 #4C31B5
triadic
#3158B5 #B53158 #58B531
tetradic
#3158B5 #B5319A #B58E31 #31B54C
square
#3158B5 #B5319A #B58E31 #31B54C
split-complementary
#3158B5 #B54C31 #9AB531
monochromatic
#172955 #244185 #3158B5 #5378D0 #839EDD
Accessibility & contrast
On white
6.58
#3158B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#3158B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158B5
6.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158B5 | 1.00 | 6.58 | 3.19 | 6.58 |
| #FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E63B8
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #3158b5; /* rgb */ color: rgb(49, 88, 181); /* oklch */ color: oklch(48.5% 0.154 264.3);
Tailwind
colors: {
custom: {
50: '#7b86cc',
500: '#3158b5',
950: '#000000',
},
}SCSS
$custom: #3158b5; $custom-light: #7b86cc; $custom-dark: #000000;
JSON
{
"hex": "#3158b5",
"rgb": {
"r": 49,
"g": 88,
"b": 181
},
"hsl": {
"h": 222.273,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.4853,
"c": 0.15427,
"h": 264.3
},
"luminance": 0.10969
}Semantic roles & 50–950 ramp
primary
#3158B5
secondary
#C7B07B
accent
#B347E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82