#3161B1#3161B1

#3161B1 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.2% C 0.138 H 260.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#3161B1
RGBrgb(49, 97, 177)
HSLhsl(218, 57%, 44%)
HSVhsv(218, 72%, 69%)
CMYKcmyk(72.3%, 45.2%, 0%, 30.6%)
CIE-LABlab(41.81, 11.55, -47.37)
CIE-LCHlch(41.81, 48.76, 283.70°)
OKLaboklab(50.19% -0.0238 -0.1356)
OKLCHoklch(50.19% 0.138 260)
XYZxyz(13.4743, 12.3752, 43.2650)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B1 #B18131
analogous
#31A1B1 #3161B1 #4131B1
triadic
#3161B1 #B13161 #61B131
tetradic
#3161B1 #B131A1 #B18131 #31B141
square
#3161B1 #B131A1 #B18131 #31B141
split-complementary
#3161B1 #B14131 #A1B131
monochromatic
#162C51 #244781 #3161B1 #5180CF #80A3DC

Accessibility & contrast

On white

6.04
#3161B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#3161B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B1
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B1#FFFFFF#000000##FFFFFF
##3161B11.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3969B4
Deuteranopia (green-blind)
#1F5DAF
Tritanopia (blue-blind)
#007480
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3161b1;
/* rgb */ color: rgb(49, 97, 177);
/* oklch */ color: oklch(50.2% 0.138 260.0);
Tailwind
colors: {
  custom: {
    50: '#798dc9',
    500: '#3161b1',
    950: '#000000',
  },
}
SCSS
$custom: #3161b1;
$custom-light: #798dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b1",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 177
  },
  "hsl": {
    "h": 217.5,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50194,
    "c": 0.13771,
    "h": 260
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

primary
#3161B1
secondary
#C5A879
accent
#A748E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161B1

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

Preview Lab → · Contrast checker → · Palette generator →

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