#3157AB#3157AB
#3157AB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.142 H 263.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).
Color values
| HEX | #3157AB |
|---|---|
| RGB | rgb(49, 87, 171) |
| HSL | hsl(221, 55%, 43%) |
| HSV | hsv(221, 71%, 67%) |
| CMYK | cmyk(71.3%, 49.1%, 0%, 32.9%) |
| CIE-LAB | lab(38.57, 15.80, -49.04) |
| CIE-LCH | lch(38.57, 51.52, 287.85°) |
| OKLab | oklab(47.58% -0.0157 -0.1407) |
| OKLCH | oklch(47.58% 0.142 263.6) |
| XYZ | xyz(12.0229, 10.4084, 39.8956) |
| Luminance | 0.1041 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.83
Denim Blue
#3B5B92
ΔE00 3.61
Dusk Blue
#26538D
ΔE00 4.56
Denim
#1560BD
ΔE00 4.60
Dusky Blue
#475F94
ΔE00 4.87
Light Navy Blue
#2E5A88
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157AB #AB8531
analogous
#3194AB #3157AB #4831AB
triadic
#3157AB #AB3157 #57AB31
tetradic
#3157AB #AB3194 #AB8531 #31AB48
square
#3157AB #AB3194 #AB8531 #31AB48
split-complementary
#3157AB #AB4831 #94AB31
monochromatic
#16274C #233F7B #3157AB #4D75CC #7D9ADA
Accessibility & contrast
On white
6.81
#3157AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#3157AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157AB
6.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157AB | 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)
#2861AE
Deuteranopia (green-blind)
#0256A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #3157ab; /* rgb */ color: rgb(49, 87, 171); /* oklch */ color: oklch(47.6% 0.142 263.6);
Tailwind
colors: {
custom: {
50: '#7885c4',
500: '#3157ab',
950: '#000000',
},
}SCSS
$custom: #3157ab; $custom-light: #7885c4; $custom-dark: #000000;
JSON
{
"hex": "#3157ab",
"rgb": {
"r": 49,
"g": 87,
"b": 171
},
"hsl": {
"h": 221.311,
"s": 55.455,
"l": 43.137
},
"oklch": {
"l": 0.47582,
"c": 0.14158,
"h": 263.6
},
"luminance": 0.1041
}Semantic roles & 50–950 ramp
primary
#3157AB
secondary
#C2AA75
accent
#B049DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82