#3151B9#3151B9
#3151B9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.168 H 266.8°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).
Color values
| HEX | #3151B9 |
|---|---|
| RGB | rgb(49, 81, 185) |
| HSL | hsl(226, 58%, 46%) |
| HSV | hsv(226, 74%, 73%) |
| CMYK | cmyk(73.5%, 56.2%, 0%, 27.5%) |
| CIE-LAB | lab(37.91, 24.99, -58.35) |
| CIE-LCH | lch(37.91, 63.48, 293.18°) |
| OKLab | oklab(47.4% -0.0094 -0.1682) |
| OKLCH | oklch(47.4% 0.168 266.8) |
| XYZ | xyz(12.9630, 10.0392, 47.1441) |
| Luminance | 0.1004 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.80
Cobalt
#0047AB
ΔE00 4.52
Blue Blue
#2242C7
ΔE00 5.05
Blue (survey)
#0343DF
ΔE00 6.22
Warm Blue
#4B57DB
ΔE00 6.24
Denim Blue
#3B5B92
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151B9 #B99931
analogous
#3195B9 #3151B9 #5531B9
triadic
#3151B9 #B93151 #51B931
tetradic
#3151B9 #B93195 #B99931 #31B955
square
#3151B9 #B93195 #B99931 #31B955
split-complementary
#3151B9 #B95531 #95B931
monochromatic
#172758 #243C89 #3151B9 #5573D2 #869BDF
Accessibility & contrast
On white
6.98
#3151B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.01
#3151B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151B9
6.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151B9 | 1.00 | 6.98 | 3.01 | 6.98 |
| #FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #3151b9; /* rgb */ color: rgb(49, 81, 185); /* oklch */ color: oklch(47.4% 0.168 266.8);
Tailwind
colors: {
custom: {
50: '#7c81cf',
500: '#3151b9',
950: '#000000',
},
}SCSS
$custom: #3151b9; $custom-light: #7c81cf; $custom-dark: #000000;
JSON
{
"hex": "#3151b9",
"rgb": {
"r": 49,
"g": 81,
"b": 185
},
"hsl": {
"h": 225.882,
"s": 58.12,
"l": 45.882
},
"oklch": {
"l": 0.47403,
"c": 0.16847,
"h": 266.8
},
"luminance": 0.10041
}Semantic roles & 50–950 ramp
primary
#3151B9
secondary
#C8B77D
accent
#BD46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82