#3158B7#3158B7
#3158B7 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.7% C 0.157 H 264.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).
Color values
| HEX | #3158B7 |
|---|---|
| RGB | rgb(49, 88, 183) |
| HSL | hsl(223, 58%, 45%) |
| HSV | hsv(223, 73%, 72%) |
| CMYK | cmyk(73.2%, 51.9%, 0%, 28.2%) |
| CIE-LAB | lab(39.66, 19.65, -54.34) |
| CIE-LCH | lch(39.66, 57.78, 289.88°) |
| OKLab | oklab(48.68% -0.0151 -0.1563) |
| OKLCH | oklch(48.68% 0.157 264.5) |
| XYZ | xyz(13.3006, 11.0499, 46.2224) |
| Luminance | 0.1105 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.62
Denim
#1560BD
ΔE00 4.30
Denim Blue
#3B5B92
ΔE00 4.90
Dusky Blue
#475F94
ΔE00 5.73
Cobalt
#0047AB
ΔE00 5.82
Dusk Blue
#26538D
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158B7 #B79031
analogous
#319BB7 #3158B7 #4D31B7
triadic
#3158B7 #B73158 #58B731
tetradic
#3158B7 #B7319B #B79031 #31B74D
square
#3158B7 #B7319B #B79031 #31B74D
split-complementary
#3158B7 #B74D31 #9BB731
monochromatic
#172A56 #244187 #3158B7 #5478D1 #849EDE
Accessibility & contrast
On white
6.54
#3158B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.21
#3158B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158B7
6.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158B7 | 1.00 | 6.54 | 3.21 | 6.54 |
| #FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A64BA
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #3158b7; /* rgb */ color: rgb(49, 88, 183); /* oklch */ color: oklch(48.7% 0.157 264.5);
Tailwind
colors: {
custom: {
50: '#7b86cd',
500: '#3158b7',
950: '#000000',
},
}SCSS
$custom: #3158b7; $custom-light: #7b86cd; $custom-dark: #000000;
JSON
{
"hex": "#3158b7",
"rgb": {
"r": 49,
"g": 88,
"b": 183
},
"hsl": {
"h": 222.537,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.48681,
"c": 0.15702,
"h": 264.5
},
"luminance": 0.11051
}Semantic roles & 50–950 ramp
primary
#3158B7
secondary
#C8B27C
accent
#B447E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82