#3161B9#3161B9

#3161B9 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.7% C 0.149 H 261.3°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#3161B9
RGBrgb(49, 97, 185)
HSLhsl(219, 58%, 46%)
HSVhsv(219, 74%, 73%)
CMYKcmyk(73.5%, 47.6%, 0%, 27.5%)
CIE-LABlab(42.31, 14.55, -51.24)
CIE-LCHlch(42.31, 53.26, 285.85°)
OKLaboklab(50.75% -0.0225 -0.147)
OKLCHoklch(50.75% 0.149 261.3)
XYZxyz(14.2951, 12.7036, 47.5882)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B9 #B98931
analogous
#31A5B9 #3161B9 #4531B9
triadic
#3161B9 #B93161 #61B931
tetradic
#3161B9 #B931A5 #B98931 #31B945
square
#3161B9 #B931A5 #B98931 #31B945
split-complementary
#3161B9 #B94531 #A5B931
monochromatic
#172E58 #244889 #3161B9 #5581D2 #86A5DF

Accessibility & contrast

On white

5.93
#3161B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#3161B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B9
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B9#FFFFFF#000000##FFFFFF
##3161B91.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316BBC
Deuteranopia (green-blind)
#0C5EB7
Tritanopia (blue-blind)
#007684
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3161b9;
/* rgb */ color: rgb(49, 97, 185);
/* oklch */ color: oklch(50.7% 0.149 261.3);
Tailwind
colors: {
  custom: {
    50: '#7b8dcf',
    500: '#3161b9',
    950: '#000000',
  },
}
SCSS
$custom: #3161b9;
$custom-light: #7b8dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b9",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 185
  },
  "hsl": {
    "h": 218.824,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50746,
    "c": 0.14872,
    "h": 261.3
  },
  "luminance": 0.12705
}

Semantic roles & 50–950 ramp

primary
#3161B9
secondary
#C8AE7D
accent
#AB46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3161B9

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

Preview Lab → · Contrast checker → · Palette generator →

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