#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
RGBrgb(49, 97, 183)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 72%)
CMYKcmyk(73.2%, 47%, 0%, 28.2%)
CIE-LABlab(42.18, 13.80, -50.28)
CIE-LCHlch(42.18, 52.14, 285.35°)
OKLaboklab(50.61% -0.0228 -0.1442)
OKLCHoklch(50.61% 0.146 261)
XYZxyz(14.0855, 12.6197, 46.4841)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##3161B71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.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

Preview Lab

Preview with #3161B7

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#3161B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva