#3151B0#3151B0
#3151B0 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.156 H 266.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).
Color values
| HEX | #3151B0 |
|---|---|
| RGB | rgb(49, 81, 176) |
| HSL | hsl(225, 56%, 44%) |
| HSV | hsv(225, 72%, 69%) |
| CMYK | cmyk(72.2%, 54%, 0%, 31%) |
| CIE-LAB | lab(37.25, 21.62, -54.13) |
| CIE-LCH | lch(37.25, 58.29, 291.78°) |
| OKLab | oklab(46.69% -0.01 -0.1558) |
| OKLCH | oklch(46.69% 0.156 266.3) |
| XYZ | xyz(12.0428, 9.6712, 42.2979) |
| Luminance | 0.0967 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.69
Cobalt
#0047AB
ΔE00 3.98
Denim Blue
#3B5B92
ΔE00 5.43
Cobalt (survey)
#1E488F
ΔE00 5.61
Dusk Blue
#26538D
ΔE00 5.76
Blue Blue
#2242C7
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151B0 #B09031
analogous
#3191B0 #3151B0 #5131B0
triadic
#3151B0 #B03151 #51B031
tetradic
#3151B0 #B03191 #B09031 #31B051
square
#3151B0 #B03191 #B09031 #31B051
split-complementary
#3151B0 #B05131 #91B031
monochromatic
#162550 #243B80 #3151B0 #5070CE #8097DC
Accessibility & contrast
On white
7.16
#3151B0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#3151B0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151B0
7.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151B0 | 1.00 | 7.16 | 2.93 | 7.16 |
| #FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#085EB3
Deuteranopia (green-blind)
#0052AE
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #3151b0; /* rgb */ color: rgb(49, 81, 176); /* oklch */ color: oklch(46.7% 0.156 266.3);
Tailwind
colors: {
custom: {
50: '#7a81c8',
500: '#3151b0',
950: '#000000',
},
}SCSS
$custom: #3151b0; $custom-light: #7a81c8; $custom-dark: #000000;
JSON
{
"hex": "#3151b0",
"rgb": {
"r": 49,
"g": 81,
"b": 176
},
"hsl": {
"h": 224.882,
"s": 56.444,
"l": 44.118
},
"oklch": {
"l": 0.46689,
"c": 0.15611,
"h": 266.3
},
"luminance": 0.09672
}Semantic roles & 50–950 ramp
primary
#3151B0
secondary
#C5B178
accent
#BA48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82