#3161A7#3161A7

#3161A7 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.5% C 0.124 H 258.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#3161A7
RGBrgb(49, 97, 167)
HSLhsl(216, 55%, 42%)
HSVhsv(216, 71%, 65%)
CMYKcmyk(70.7%, 41.9%, 0%, 34.5%)
CIE-LABlab(41.20, 7.80, -42.44)
CIE-LCHlch(41.20, 43.15, 280.42°)
OKLaboklab(49.53% -0.0258 -0.1211)
OKLCHoklch(49.53% 0.124 258)
XYZxyz(12.5138, 11.9911, 38.2067)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161A7 #A77731
analogous
#319CA7 #3161A7 #3C31A7
triadic
#3161A7 #A73161 #61A731
tetradic
#3161A7 #A7319C #A77731 #31A73C
square
#3161A7 #A7319C #A77731 #31A73C
split-complementary
#3161A7 #A73C31 #9CA731
monochromatic
#152A48 #234678 #3161A7 #4B7FCA #7AA0D8

Accessibility & contrast

On white

6.18
#3161A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#3161A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161A7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161A7#FFFFFF#000000##FFFFFF
##3161A71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4067AA
Deuteranopia (green-blind)
#2D5CA6
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3161a7;
/* rgb */ color: rgb(49, 97, 167);
/* oklch */ color: oklch(49.5% 0.124 258.0);
Tailwind
colors: {
  custom: {
    50: '#778dc1',
    500: '#3161a7',
    950: '#000000',
  },
}
SCSS
$custom: #3161a7;
$custom-light: #778dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#3161a7",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 167
  },
  "hsl": {
    "h": 215.593,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49531,
    "c": 0.12388,
    "h": 258
  },
  "luminance": 0.11992
}

Semantic roles & 50–950 ramp

primary
#3161A7
secondary
#C1A173
accent
#A24ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #3161A7

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

Preview Lab → · Contrast checker → · Palette generator →

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