#3151BA#3151BA
#3151BA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.170 H 266.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3151BA |
|---|---|
| RGB | rgb(49, 81, 186) |
| HSL | hsl(226, 58%, 46%) |
| HSV | hsv(226, 74%, 73%) |
| CMYK | cmyk(73.7%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.99, 25.36, -58.82) |
| CIE-LCH | lch(37.99, 64.05, 293.33°) |
| OKLab | oklab(47.48% -0.0093 -0.1696) |
| OKLCH | oklch(47.48% 0.17 266.8) |
| XYZ | xyz(13.0689, 10.0816, 47.7020) |
| Luminance | 0.1008 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.85
Cobalt
#0047AB
ΔE00 4.60
Blue Blue
#2242C7
ΔE00 4.98
Blue (survey)
#0343DF
ΔE00 6.12
Warm Blue
#4B57DB
ΔE00 6.12
Denim Blue
#3B5B92
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3151BA #BA9A31
analogous
#3195BA #3151BA #5531BA
triadic
#3151BA #BA3151 #51BA31
tetradic
#3151BA #BA3195 #BA9A31 #31BA55
square
#3151BA #BA3195 #BA9A31 #31BA55
split-complementary
#3151BA #BA5531 #95BA31
monochromatic
#172759 #243C8A #3151BA #5673D2 #869BDF
Accessibility & contrast
On white
6.96
#3151BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.02
#3151BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3151BA
6.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3151BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3151BA | 1.00 | 6.96 | 3.02 | 6.96 |
| #FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #3151ba; /* rgb */ color: rgb(49, 81, 186); /* oklch */ color: oklch(47.5% 0.170 266.8);
Tailwind
colors: {
custom: {
50: '#7c81d0',
500: '#3151ba',
950: '#000000',
},
}SCSS
$custom: #3151ba; $custom-light: #7c81d0; $custom-dark: #000000;
JSON
{
"hex": "#3151ba",
"rgb": {
"r": 49,
"g": 81,
"b": 186
},
"hsl": {
"h": 225.985,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.47484,
"c": 0.16983,
"h": 266.8
},
"luminance": 0.10083
}Semantic roles & 50–950 ramp
primary
#3151BA
secondary
#C9B77E
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82