#3157AF#3157AF
#3157AF is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.147 H 264.1°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).
Color values
| HEX | #3157AF |
|---|---|
| RGB | rgb(49, 87, 175) |
| HSL | hsl(222, 56%, 44%) |
| HSV | hsv(222, 72%, 69%) |
| CMYK | cmyk(72%, 50.3%, 0%, 31.4%) |
| CIE-LAB | lab(38.83, 17.30, -50.97) |
| CIE-LCH | lch(38.83, 53.83, 288.75°) |
| OKLab | oklab(47.87% -0.0152 -0.1464) |
| OKLCH | oklch(47.87% 0.147 264.1) |
| XYZ | xyz(12.4099, 10.5632, 41.9340) |
| Luminance | 0.1056 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.60
Denim Blue
#3B5B92
ΔE00 4.08
Denim
#1560BD
ΔE00 4.55
Dusk Blue
#26538D
ΔE00 5.05
Dusky Blue
#475F94
ΔE00 5.18
Cobalt
#0047AB
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3157AF #AF8931
analogous
#3196AF #3157AF #4A31AF
triadic
#3157AF #AF3157 #57AF31
tetradic
#3157AF #AF3196 #AF8931 #31AF4A
square
#3157AF #AF3196 #AF8931 #31AF4A
split-complementary
#3157AF #AF4A31 #96AF31
monochromatic
#16274F #243F7F #3157AF #4F76CE #7F9BDB
Accessibility & contrast
On white
6.75
#3157AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.11
#3157AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3157AF
6.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3157AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3157AF | 1.00 | 6.75 | 3.11 | 6.75 |
| #FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #3157af; /* rgb */ color: rgb(49, 87, 175); /* oklch */ color: oklch(47.9% 0.147 264.1);
Tailwind
colors: {
custom: {
50: '#7985c7',
500: '#3157af',
950: '#000000',
},
}SCSS
$custom: #3157af; $custom-light: #7985c7; $custom-dark: #000000;
JSON
{
"hex": "#3157af",
"rgb": {
"r": 49,
"g": 87,
"b": 175
},
"hsl": {
"h": 221.905,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.47873,
"c": 0.14718,
"h": 264.1
},
"luminance": 0.10565
}Semantic roles & 50–950 ramp
primary
#3157AF
secondary
#C4AD78
accent
#B248E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82