#3161B0#3161B0

#3161B0 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.1% C 0.136 H 259.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#3161B0
RGBrgb(49, 97, 176)
HSLhsl(217, 56%, 44%)
HSVhsv(217, 72%, 69%)
CMYKcmyk(72.2%, 44.9%, 0%, 31%)
CIE-LABlab(41.74, 11.17, -46.88)
CIE-LCHlch(41.74, 48.19, 283.40°)
OKLaboklab(50.13% -0.024 -0.1342)
OKLCHoklch(50.13% 0.136 259.8)
XYZxyz(13.3750, 12.3355, 42.7420)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B0 #B08031
analogous
#31A1B0 #3161B0 #4131B0
triadic
#3161B0 #B03161 #61B031
tetradic
#3161B0 #B031A1 #B08031 #31B041
square
#3161B0 #B031A1 #B08031 #31B041
split-complementary
#3161B0 #B04131 #A1B031
monochromatic
#162C50 #244780 #3161B0 #5080CE #80A2DC

Accessibility & contrast

On white

6.06
#3161B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#3161B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B0
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B0#FFFFFF#000000##FFFFFF
##3161B01.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3969B3
Deuteranopia (green-blind)
#215DAE
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3161b0;
/* rgb */ color: rgb(49, 97, 176);
/* oklch */ color: oklch(50.1% 0.136 259.8);
Tailwind
colors: {
  custom: {
    50: '#798dc8',
    500: '#3161b0',
    950: '#000000',
  },
}
SCSS
$custom: #3161b0;
$custom-light: #798dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b0",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 176
  },
  "hsl": {
    "h": 217.323,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50126,
    "c": 0.13632,
    "h": 259.8
  },
  "luminance": 0.12337
}

Semantic roles & 50–950 ramp

primary
#3161B0
secondary
#C5A878
accent
#A648E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161B0

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

Preview Lab → · Contrast checker → · Palette generator →

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