#3151B3#3151B3
#3151B3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.160 H 266.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).
Color values
| HEX | #3151B3 |
|---|---|
| RGB | rgb(49, 81, 179) |
| HSL | hsl(225, 57%, 45%) |
| HSV | hsv(225, 73%, 70%) |
| CMYK | cmyk(72.6%, 54.7%, 0%, 29.8%) |
| CIE-LAB | lab(37.47, 22.75, -55.55) |
| CIE-LCH | lch(37.47, 60.02, 292.27°) |
| OKLab | oklab(46.93% -0.0098 -0.16) |
| OKLCH | oklch(46.93% 0.16 266.5) |
| XYZ | xyz(12.3429, 9.7912, 43.8785) |
| Luminance | 0.0979 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.66
Cobalt
#0047AB
ΔE00 4.12
Blue Blue
#2242C7
ΔE00 5.51
Denim Blue
#3B5B92
ΔE00 5.73
Cobalt (survey)
#1E488F
ΔE00 5.98
Dusk Blue
#26538D
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151B3 #B39331
analogous
#3192B3 #3151B3 #5231B3
triadic
#3151B3 #B33151 #51B331
tetradic
#3151B3 #B33192 #B39331 #31B352
square
#3151B3 #B33192 #B39331 #31B352
split-complementary
#3151B3 #B35231 #92B331
monochromatic
#172653 #243B83 #3151B3 #5271D0 #8298DD
Accessibility & contrast
On white
7.10
#3151B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.96
#3151B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151B3
7.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151B3 | 1.00 | 7.10 | 2.96 | 7.10 |
| #FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858
Design tokens & code
CSS
--color: #3151b3; /* rgb */ color: rgb(49, 81, 179); /* oklch */ color: oklch(46.9% 0.160 266.5);
Tailwind
colors: {
custom: {
50: '#7b81ca',
500: '#3151b3',
950: '#000000',
},
}SCSS
$custom: #3151b3; $custom-light: #7b81ca; $custom-dark: #000000;
JSON
{
"hex": "#3151b3",
"rgb": {
"r": 49,
"g": 81,
"b": 179
},
"hsl": {
"h": 225.231,
"s": 57.018,
"l": 44.706
},
"oklch": {
"l": 0.46925,
"c": 0.16026,
"h": 266.5
},
"luminance": 0.09793
}Semantic roles & 50–950 ramp
primary
#3151B3
secondary
#C6B37A
accent
#BB48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82