#3158B9#3158B9
#3158B9 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.8% C 0.160 H 264.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #3158B9 |
|---|---|
| RGB | rgb(49, 88, 185) |
| HSL | hsl(223, 58%, 46%) |
| HSV | hsv(223, 74%, 73%) |
| CMYK | cmyk(73.5%, 52.4%, 0%, 27.5%) |
| CIE-LAB | lab(39.80, 20.40, -55.28) |
| CIE-LCH | lch(39.80, 58.93, 290.26°) |
| OKLab | oklab(48.83% -0.0149 -0.1591) |
| OKLCH | oklch(48.83% 0.16 264.6) |
| XYZ | xyz(13.5102, 11.1337, 47.3265) |
| Luminance | 0.1114 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.66
Denim
#1560BD
ΔE00 4.36
Denim Blue
#3B5B92
ΔE00 5.15
Cobalt
#0047AB
ΔE00 5.91
Dusky Blue
#475F94
ΔE00 5.92
Dusk Blue
#26538D
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3158B9 #B99231
analogous
#319CB9 #3158B9 #4E31B9
triadic
#3158B9 #B93158 #58B931
tetradic
#3158B9 #B9319C #B99231 #31B94E
square
#3158B9 #B9319C #B99231 #31B94E
split-complementary
#3158B9 #B94E31 #9CB931
monochromatic
#172A58 #244189 #3158B9 #5579D2 #869FDF
Accessibility & contrast
On white
6.51
#3158B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.23
#3158B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3158B9
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3158B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3158B9 | 1.00 | 6.51 | 3.23 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1664BC
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #3158b9; /* rgb */ color: rgb(49, 88, 185); /* oklch */ color: oklch(48.8% 0.160 264.6);
Tailwind
colors: {
custom: {
50: '#7b86cf',
500: '#3158b9',
950: '#000000',
},
}SCSS
$custom: #3158b9; $custom-light: #7b86cf; $custom-dark: #000000;
JSON
{
"hex": "#3158b9",
"rgb": {
"r": 49,
"g": 88,
"b": 185
},
"hsl": {
"h": 222.794,
"s": 58.12,
"l": 45.882
},
"oklch": {
"l": 0.48832,
"c": 0.15977,
"h": 264.6
},
"luminance": 0.11135
}Semantic roles & 50–950 ramp
primary
#3158B9
secondary
#C8B37D
accent
#B546E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82