#3151B1#3151B1
#3151B1 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.157 H 266.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #3151B1 |
|---|---|
| RGB | rgb(49, 81, 177) |
| HSL | hsl(225, 57%, 44%) |
| HSV | hsv(225, 72%, 69%) |
| CMYK | cmyk(72.3%, 54.2%, 0%, 30.6%) |
| CIE-LAB | lab(37.32, 22.00, -54.60) |
| CIE-LCH | lch(37.32, 58.87, 291.94°) |
| OKLab | oklab(46.77% -0.0099 -0.1572) |
| OKLCH | oklch(46.77% 0.157 266.4) |
| XYZ | xyz(12.1421, 9.7109, 42.8209) |
| Luminance | 0.0971 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.67
Cobalt
#0047AB
ΔE00 4.03
Denim Blue
#3B5B92
ΔE00 5.53
Blue Blue
#2242C7
ΔE00 5.69
Cobalt (survey)
#1E488F
ΔE00 5.73
Dusk Blue
#26538D
ΔE00 5.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151B1 #B19131
analogous
#3191B1 #3151B1 #5131B1
triadic
#3151B1 #B13151 #51B131
tetradic
#3151B1 #B13191 #B19131 #31B151
square
#3151B1 #B13191 #B19131 #31B151
split-complementary
#3151B1 #B15131 #91B131
monochromatic
#162551 #243B81 #3151B1 #5170CF #8097DC
Accessibility & contrast
On white
7.14
#3151B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.94
#3151B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151B1
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151B1 | 1.00 | 7.14 | 2.94 | 7.14 |
| #FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#045EB4
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #3151b1; /* rgb */ color: rgb(49, 81, 177); /* oklch */ color: oklch(46.8% 0.157 266.4);
Tailwind
colors: {
custom: {
50: '#7a81c9',
500: '#3151b1',
950: '#000000',
},
}SCSS
$custom: #3151b1; $custom-light: #7a81c9; $custom-dark: #000000;
JSON
{
"hex": "#3151b1",
"rgb": {
"r": 49,
"g": 81,
"b": 177
},
"hsl": {
"h": 225,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.46768,
"c": 0.15749,
"h": 266.4
},
"luminance": 0.09712
}Semantic roles & 50–950 ramp
primary
#3151B1
secondary
#C5B279
accent
#BA48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82