#3151BC#3151BC
#3151BC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.173 H 266.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #3151BC |
|---|---|
| RGB | rgb(49, 81, 188) |
| HSL | hsl(226, 59%, 46%) |
| HSV | hsv(226, 74%, 74%) |
| CMYK | cmyk(73.9%, 56.9%, 0%, 26.3%) |
| CIE-LAB | lab(38.14, 26.11, -59.74) |
| CIE-LCH | lch(38.14, 65.20, 293.60°) |
| OKLab | oklab(47.65% -0.0092 -0.1723) |
| OKLCH | oklch(47.65% 0.173 266.9) |
| XYZ | xyz(13.2830, 10.1672, 48.8296) |
| Luminance | 0.1017 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.96
Cobalt
#0047AB
ΔE00 4.76
Blue Blue
#2242C7
ΔE00 4.86
Warm Blue
#4B57DB
ΔE00 5.88
Blue (survey)
#0343DF
ΔE00 5.90
Denim Blue
#3B5B92
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151BC #BC9C31
analogous
#3197BC #3151BC #5731BC
triadic
#3151BC #BC3151 #51BC31
tetradic
#3151BC #BC3197 #BC9C31 #31BC57
square
#3151BC #BC3197 #BC9C31 #31BC57
split-complementary
#3151BC #BC5731 #97BC31
monochromatic
#18275B #243C8B #3151BC #5774D3 #889CE0
Accessibility & contrast
On white
6.92
#3151BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.03
#3151BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151BC
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151BC | 1.00 | 6.92 | 3.03 | 6.92 |
| #FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #3151bc; /* rgb */ color: rgb(49, 81, 188); /* oklch */ color: oklch(47.6% 0.173 266.9);
Tailwind
colors: {
custom: {
50: '#7d81d1',
500: '#3151bc',
950: '#000000',
},
}SCSS
$custom: #3151bc; $custom-light: #7d81d1; $custom-dark: #000000;
JSON
{
"hex": "#3151bc",
"rgb": {
"r": 49,
"g": 81,
"b": 188
},
"hsl": {
"h": 226.187,
"s": 58.65,
"l": 46.471
},
"oklch": {
"l": 0.47646,
"c": 0.17254,
"h": 266.9
},
"luminance": 0.10169
}Semantic roles & 50–950 ramp
primary
#3151BC
secondary
#CAB87F
accent
#BE46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82