#3151AB#3151AB
#3151AB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.3% C 0.149 H 266.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #3151AB |
|---|---|
| RGB | rgb(49, 81, 171) |
| HSL | hsl(224, 55%, 43%) |
| HSV | hsv(224, 71%, 67%) |
| CMYK | cmyk(71.3%, 52.6%, 0%, 32.9%) |
| CIE-LAB | lab(36.89, 19.75, -51.74) |
| CIE-LCH | lch(36.89, 55.39, 290.89°) |
| OKLab | oklab(46.3% -0.0104 -0.1488) |
| OKLCH | oklch(46.3% 0.149 266) |
| XYZ | xyz(11.5572, 9.4769, 39.7403) |
| Luminance | 0.0948 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.87
Cobalt
#0047AB
ΔE00 3.85
Denim Blue
#3B5B92
ΔE00 4.95
Cobalt (survey)
#1E488F
ΔE00 5.03
Dusk Blue
#26538D
ΔE00 5.17
Dusky Blue
#475F94
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151AB #AB8B31
analogous
#318EAB #3151AB #4E31AB
triadic
#3151AB #AB3151 #51AB31
tetradic
#3151AB #AB318E #AB8B31 #31AB4E
square
#3151AB #AB318E #AB8B31 #31AB4E
split-complementary
#3151AB #AB4E31 #8EAB31
monochromatic
#16244C #233A7B #3151AB #4D6ECC #7D95DA
Accessibility & contrast
On white
7.25
#3151AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.90
#3151AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151AB
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151AB | 1.00 | 7.25 | 2.90 | 7.25 |
| #FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#165DAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #3151ab; /* rgb */ color: rgb(49, 81, 171); /* oklch */ color: oklch(46.3% 0.149 266.0);
Tailwind
colors: {
custom: {
50: '#7981c5',
500: '#3151ab',
950: '#000000',
},
}SCSS
$custom: #3151ab; $custom-light: #7981c5; $custom-dark: #000000;
JSON
{
"hex": "#3151ab",
"rgb": {
"r": 49,
"g": 81,
"b": 171
},
"hsl": {
"h": 224.262,
"s": 55.455,
"l": 43.137
},
"oklch": {
"l": 0.46304,
"c": 0.14914,
"h": 266
},
"luminance": 0.09478
}Semantic roles & 50–950 ramp
primary
#3151AB
secondary
#C2AE75
accent
#B749DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82