#3151B7#3151B7
#3151B7 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.166 H 266.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).
Color values
| HEX | #3151B7 |
|---|---|
| RGB | rgb(49, 81, 183) |
| HSL | hsl(226, 58%, 45%) |
| HSV | hsv(226, 73%, 72%) |
| CMYK | cmyk(73.2%, 55.7%, 0%, 28.2%) |
| CIE-LAB | lab(37.76, 24.24, -57.42) |
| CIE-LCH | lch(37.76, 62.33, 292.89°) |
| OKLab | oklab(47.24% -0.0095 -0.1655) |
| OKLCH | oklch(47.24% 0.166 266.7) |
| XYZ | xyz(12.7533, 9.9554, 46.0400) |
| Luminance | 0.0996 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.73
Cobalt
#0047AB
ΔE00 4.37
Blue Blue
#2242C7
ΔE00 5.19
Denim Blue
#3B5B92
ΔE00 6.14
Blue (survey)
#0343DF
ΔE00 6.45
Cobalt (survey)
#1E488F
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151B7 #B79731
analogous
#3194B7 #3151B7 #5431B7
triadic
#3151B7 #B73151 #51B731
tetradic
#3151B7 #B73194 #B79731 #31B754
square
#3151B7 #B73194 #B79731 #31B754
split-complementary
#3151B7 #B75431 #94B731
monochromatic
#172656 #243C87 #3151B7 #5472D1 #849ADE
Accessibility & contrast
On white
7.02
#3151B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#3151B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3151B7
7.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151B7 | 1.00 | 7.02 | 2.99 | 7.02 |
| #FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #3151b7; /* rgb */ color: rgb(49, 81, 183); /* oklch */ color: oklch(47.2% 0.166 266.7);
Tailwind
colors: {
custom: {
50: '#7b81cd',
500: '#3151b7',
950: '#000000',
},
}SCSS
$custom: #3151b7; $custom-light: #7b81cd; $custom-dark: #000000;
JSON
{
"hex": "#3151b7",
"rgb": {
"r": 49,
"g": 81,
"b": 183
},
"hsl": {
"h": 225.672,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.47242,
"c": 0.16574,
"h": 266.7
},
"luminance": 0.09957
}Semantic roles & 50–950 ramp
primary
#3151B7
secondary
#C8B67C
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82