#3161A5#3161A5

#3161A5 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.4% C 0.121 H 257.5°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#3161A5
RGBrgb(49, 97, 165)
HSLhsl(215, 54%, 42%)
HSVhsv(215, 70%, 65%)
CMYKcmyk(70.3%, 41.2%, 0%, 35.3%)
CIE-LABlab(41.09, 7.06, -41.44)
CIE-LCHlch(41.09, 42.04, 279.66°)
OKLaboklab(49.4% -0.0263 -0.1182)
OKLCHoklch(49.4% 0.121 257.5)
XYZxyz(12.3304, 11.9177, 37.2405)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161A5 #A57531
analogous
#319BA5 #3161A5 #3B31A5
triadic
#3161A5 #A53161 #61A531
tetradic
#3161A5 #A5319B #A57531 #31A53B
square
#3161A5 #A5319B #A57531 #31A53B
split-complementary
#3161A5 #A53B31 #9BA531
monochromatic
#152A47 #234576 #3161A5 #4A7FC9 #79A0D7

Accessibility & contrast

On white

6.21
#3161A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#3161A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161A5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161A5#FFFFFF#000000##FFFFFF
##3161A51.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4167A8
Deuteranopia (green-blind)
#2F5CA4
Tritanopia (blue-blind)
#00717B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3161a5;
/* rgb */ color: rgb(49, 97, 165);
/* oklch */ color: oklch(49.4% 0.121 257.5);
Tailwind
colors: {
  custom: {
    50: '#778dc0',
    500: '#3161a5',
    950: '#000000',
  },
}
SCSS
$custom: #3161a5;
$custom-light: #778dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#3161a5",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 165
  },
  "hsl": {
    "h": 215.172,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49402,
    "c": 0.12111,
    "h": 257.5
  },
  "luminance": 0.11919
}

Semantic roles & 50–950 ramp

primary
#3161A5
secondary
#C0A072
accent
#A14ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #3161A5

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

Preview Lab → · Contrast checker → · Palette generator →

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