#3154B5#3154B5
#3154B5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.159 H 265.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).
Color values
| HEX | #3154B5 |
|---|---|
| RGB | rgb(49, 84, 181) |
| HSL | hsl(224, 57%, 45%) |
| HSV | hsv(224, 73%, 71%) |
| CMYK | cmyk(72.9%, 53.6%, 0%, 29%) |
| CIE-LAB | lab(38.43, 21.52, -55.17) |
| CIE-LCH | lch(38.43, 59.22, 291.31°) |
| OKLab | oklab(47.7% -0.012 -0.1588) |
| OKLCH | oklch(47.7% 0.159 265.7) |
| XYZ | xyz(12.7745, 10.3285, 45.0275) |
| Luminance | 0.1033 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.35
Cobalt
#0047AB
ΔE00 4.78
Denim Blue
#3B5B92
ΔE00 5.29
Denim
#1560BD
ΔE00 5.57
Dusk Blue
#26538D
ΔE00 5.99
Dusky Blue
#475F94
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3154B5 #B59231
analogous
#3196B5 #3154B5 #5031B5
triadic
#3154B5 #B53154 #54B531
tetradic
#3154B5 #B53196 #B59231 #31B550
square
#3154B5 #B53196 #B59231 #31B550
split-complementary
#3154B5 #B55031 #96B531
monochromatic
#172755 #243E85 #3154B5 #5374D0 #839BDD
Accessibility & contrast
On white
6.85
#3154B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#3154B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3154B5
6.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3154B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3154B5 | 1.00 | 6.85 | 3.07 | 6.85 |
| #FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B61B8
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5A5A5A
Design tokens & code
CSS
--color: #3154b5; /* rgb */ color: rgb(49, 84, 181); /* oklch */ color: oklch(47.7% 0.159 265.7);
Tailwind
colors: {
custom: {
50: '#7b83cc',
500: '#3154b5',
950: '#000000',
},
}SCSS
$custom: #3154b5; $custom-light: #7b83cc; $custom-dark: #000000;
JSON
{
"hex": "#3154b5",
"rgb": {
"r": 49,
"g": 84,
"b": 181
},
"hsl": {
"h": 224.091,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.47696,
"c": 0.15926,
"h": 265.7
},
"luminance": 0.1033
}Semantic roles & 50–950 ramp
primary
#3154B5
secondary
#C7B37B
accent
#B847E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A13
muted
#7C7C82