#3156B5#3156B5
#3156B5 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.1% C 0.157 H 265.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3156B5 |
|---|---|
| RGB | rgb(49, 86, 181) |
| HSL | hsl(223, 57%, 45%) |
| HSV | hsv(223, 73%, 71%) |
| CMYK | cmyk(72.9%, 52.5%, 0%, 29%) |
| CIE-LAB | lab(38.97, 20.21, -54.28) |
| CIE-LCH | lch(38.97, 57.92, 290.42°) |
| OKLab | oklab(48.11% -0.0137 -0.1562) |
| OKLCH | oklch(48.11% 0.157 265) |
| XYZ | xyz(12.9320, 10.6434, 45.0799) |
| Luminance | 0.1065 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.38
Denim
#1560BD
ΔE00 4.91
Denim Blue
#3B5B92
ΔE00 4.94
Cobalt
#0047AB
ΔE00 5.24
Dusk Blue
#26538D
ΔE00 5.84
Dusky Blue
#475F94
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3156B5 #B59031
analogous
#3198B5 #3156B5 #4E31B5
triadic
#3156B5 #B53156 #56B531
tetradic
#3156B5 #B53198 #B59031 #31B54E
square
#3156B5 #B53198 #B59031 #31B54E
split-complementary
#3156B5 #B54E31 #98B531
monochromatic
#172855 #243F85 #3156B5 #5376D0 #839CDD
Accessibility & contrast
On white
6.71
#3156B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#3156B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3156B5
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3156B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3156B5 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1662B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #3156b5; /* rgb */ color: rgb(49, 86, 181); /* oklch */ color: oklch(48.1% 0.157 265.0);
Tailwind
colors: {
custom: {
50: '#7b85cc',
500: '#3156b5',
950: '#000000',
},
}SCSS
$custom: #3156b5; $custom-light: #7b85cc; $custom-dark: #000000;
JSON
{
"hex": "#3156b5",
"rgb": {
"r": 49,
"g": 86,
"b": 181
},
"hsl": {
"h": 223.182,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.48111,
"c": 0.15676,
"h": 265
},
"luminance": 0.10645
}Semantic roles & 50–950 ramp
primary
#3156B5
secondary
#C7B27B
accent
#B647E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82