#3161B7#3161B7
#3161B7 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.6% C 0.146 H 261.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3161B7 |
|---|---|
| RGB | rgb(49, 97, 183) |
| HSL | hsl(219, 58%, 45%) |
| HSV | hsv(219, 73%, 72%) |
| CMYK | cmyk(73.2%, 47%, 0%, 28.2%) |
| CIE-LAB | lab(42.18, 13.80, -50.28) |
| CIE-LCH | lch(42.18, 52.14, 285.35°) |
| OKLab | oklab(50.61% -0.0228 -0.1442) |
| OKLCH | oklch(50.61% 0.146 261) |
| XYZ | xyz(14.0855, 12.6197, 46.4841) |
| Luminance | 0.1262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.02
French Blue
#436BAD
ΔE00 3.67
Mid Blue
#276AB3
ΔE00 4.31
Sapphire
#0F52BA
ΔE00 5.00
Denim Blue
#3B5B92
ΔE00 5.00
Denim (survey)
#3B638C
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3161B7 #B78731
analogous
#31A4B7 #3161B7 #4431B7
triadic
#3161B7 #B73161 #61B731
tetradic
#3161B7 #B731A4 #B78731 #31B744
square
#3161B7 #B731A4 #B78731 #31B744
split-complementary
#3161B7 #B74431 #A4B731
monochromatic
#172E56 #244787 #3161B7 #5481D1 #84A4DE
Accessibility & contrast
On white
5.96
#3161B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#3161B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #3161B7
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3161B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3161B7 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#336ABA
Deuteranopia (green-blind)
#125EB5
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #3161b7; /* rgb */ color: rgb(49, 97, 183); /* oklch */ color: oklch(50.6% 0.146 261.0);
Tailwind
colors: {
custom: {
50: '#7b8dcd',
500: '#3161b7',
950: '#000000',
},
}SCSS
$custom: #3161b7; $custom-light: #7b8dcd; $custom-dark: #000000;
JSON
{
"hex": "#3161b7",
"rgb": {
"r": 49,
"g": 97,
"b": 183
},
"hsl": {
"h": 218.507,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.50606,
"c": 0.14597,
"h": 261
},
"luminance": 0.12621
}Semantic roles & 50–950 ramp
primary
#3161B7
secondary
#C8AD7C
accent
#AA47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82