#3151B6#3151B6
#3151B6 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.164 H 266.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #3151B6 |
|---|---|
| RGB | rgb(49, 81, 182) |
| HSL | hsl(226, 58%, 45%) |
| HSV | hsv(226, 73%, 71%) |
| CMYK | cmyk(73.1%, 55.5%, 0%, 28.6%) |
| CIE-LAB | lab(37.69, 23.87, -56.95) |
| CIE-LCH | lch(37.69, 61.75, 292.74°) |
| OKLab | oklab(47.16% -0.0096 -0.1641) |
| OKLCH | oklch(47.16% 0.164 266.7) |
| XYZ | xyz(12.6496, 9.9139, 45.4938) |
| Luminance | 0.0992 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.70
Cobalt
#0047AB
ΔE00 4.30
Blue Blue
#2242C7
ΔE00 5.27
Denim Blue
#3B5B92
ΔE00 6.04
Cobalt (survey)
#1E488F
ΔE00 6.35
Dusk Blue
#26538D
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151B6 #B69631
analogous
#3193B6 #3151B6 #5331B6
triadic
#3151B6 #B63151 #51B631
tetradic
#3151B6 #B63193 #B69631 #31B653
square
#3151B6 #B63193 #B69631 #31B653
split-complementary
#3151B6 #B65331 #93B631
monochromatic
#172656 #243C86 #3151B6 #5372D1 #8499DE
Accessibility & contrast
On white
7.04
#3151B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#3151B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151B6
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151B6 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0053B4
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #3151b6; /* rgb */ color: rgb(49, 81, 182); /* oklch */ color: oklch(47.2% 0.164 266.7);
Tailwind
colors: {
custom: {
50: '#7b81cd',
500: '#3151b6',
950: '#000000',
},
}SCSS
$custom: #3151b6; $custom-light: #7b81cd; $custom-dark: #000000;
JSON
{
"hex": "#3151b6",
"rgb": {
"r": 49,
"g": 81,
"b": 182
},
"hsl": {
"h": 225.564,
"s": 57.576,
"l": 45.294
},
"oklch": {
"l": 0.47162,
"c": 0.16438,
"h": 266.7
},
"luminance": 0.09915
}Semantic roles & 50–950 ramp
primary
#3151B6
secondary
#C7B57C
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82