#3151B5#3151B5
#3151B5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.163 H 266.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #3151B5 |
|---|---|
| RGB | rgb(49, 81, 181) |
| HSL | hsl(225, 57%, 45%) |
| HSV | hsv(225, 73%, 71%) |
| CMYK | cmyk(72.9%, 55.2%, 0%, 29%) |
| CIE-LAB | lab(37.61, 23.49, -56.49) |
| CIE-LCH | lch(37.61, 61.18, 292.58°) |
| OKLab | oklab(47.08% -0.0096 -0.1627) |
| OKLCH | oklch(47.08% 0.163 266.6) |
| XYZ | xyz(12.5466, 9.8727, 44.9515) |
| Luminance | 0.0987 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.68
Cobalt
#0047AB
ΔE00 4.24
Blue Blue
#2242C7
ΔE00 5.34
Denim Blue
#3B5B92
ΔE00 5.94
Cobalt (survey)
#1E488F
ΔE00 6.22
Dusk Blue
#26538D
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151B5 #B59531
analogous
#3193B5 #3151B5 #5331B5
triadic
#3151B5 #B53151 #51B531
tetradic
#3151B5 #B53193 #B59531 #31B553
square
#3151B5 #B53193 #B59531 #31B553
split-complementary
#3151B5 #B55331 #93B531
monochromatic
#172655 #243B85 #3151B5 #5371D0 #8399DD
Accessibility & contrast
On white
7.06
#3151B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.97
#3151B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151B5
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151B5 | 1.00 | 7.06 | 2.97 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #3151b5; /* rgb */ color: rgb(49, 81, 181); /* oklch */ color: oklch(47.1% 0.163 266.6);
Tailwind
colors: {
custom: {
50: '#7b81cc',
500: '#3151b5',
950: '#000000',
},
}SCSS
$custom: #3151b5; $custom-light: #7b81cc; $custom-dark: #000000;
JSON
{
"hex": "#3151b5",
"rgb": {
"r": 49,
"g": 81,
"b": 181
},
"hsl": {
"h": 225.455,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.47083,
"c": 0.163,
"h": 266.6
},
"luminance": 0.09874
}Semantic roles & 50–950 ramp
primary
#3151B5
secondary
#C7B47B
accent
#BB47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82