#3154B7#3154B7
#3154B7 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.9% C 0.162 H 265.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).
Color values
| HEX | #3154B7 |
|---|---|
| RGB | rgb(49, 84, 183) |
| HSL | hsl(224, 58%, 45%) |
| HSV | hsv(224, 73%, 72%) |
| CMYK | cmyk(73.2%, 54.1%, 0%, 28.2%) |
| CIE-LAB | lab(38.57, 22.27, -56.11) |
| CIE-LCH | lch(38.57, 60.37, 291.65°) |
| OKLab | oklab(47.85% -0.0119 -0.1616) |
| OKLCH | oklch(47.85% 0.162 265.8) |
| XYZ | xyz(12.9812, 10.4111, 46.1160) |
| Luminance | 0.1041 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.39
Cobalt
#0047AB
ΔE00 4.89
Denim Blue
#3B5B92
ΔE00 5.52
Denim
#1560BD
ΔE00 5.61
Blue Blue
#2242C7
ΔE00 6.14
Dusk Blue
#26538D
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3154B7 #B79431
analogous
#3197B7 #3154B7 #5131B7
triadic
#3154B7 #B73154 #54B731
tetradic
#3154B7 #B73197 #B79431 #31B751
square
#3154B7 #B73197 #B79431 #31B751
split-complementary
#3154B7 #B75131 #97B731
monochromatic
#172856 #243E87 #3154B7 #5475D1 #849CDE
Accessibility & contrast
On white
6.81
#3154B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#3154B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3154B7
6.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3154B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3154B7 | 1.00 | 6.81 | 3.08 | 6.81 |
| #FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0361BA
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #3154b7; /* rgb */ color: rgb(49, 84, 183); /* oklch */ color: oklch(47.9% 0.162 265.8);
Tailwind
colors: {
custom: {
50: '#7b83cd',
500: '#3154b7',
950: '#000000',
},
}SCSS
$custom: #3154b7; $custom-light: #7b83cd; $custom-dark: #000000;
JSON
{
"hex": "#3154b7",
"rgb": {
"r": 49,
"g": 84,
"b": 183
},
"hsl": {
"h": 224.328,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.47852,
"c": 0.16201,
"h": 265.8
},
"luminance": 0.10413
}Semantic roles & 50–950 ramp
primary
#3154B7
secondary
#C8B47C
accent
#B947E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82