#3161AB#3161AB

#3161AB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.8% C 0.129 H 258.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#3161AB
RGBrgb(49, 97, 171)
HSLhsl(216, 55%, 43%)
HSVhsv(216, 71%, 67%)
CMYKcmyk(71.3%, 43.3%, 0%, 32.9%)
CIE-LABlab(41.44, 9.30, -44.43)
CIE-LCHlch(41.44, 45.39, 281.82°)
OKLaboklab(49.79% -0.025 -0.127)
OKLCHoklch(49.79% 0.129 258.9)
XYZxyz(12.8893, 12.1413, 40.1844)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161AB #AB7B31
analogous
#319EAB #3161AB #3E31AB
triadic
#3161AB #AB3161 #61AB31
tetradic
#3161AB #AB319E #AB7B31 #31AB3E
square
#3161AB #AB319E #AB7B31 #31AB3E
split-complementary
#3161AB #AB3E31 #9EAB31
monochromatic
#162B4C #23467B #3161AB #4D7FCC #7DA1DA

Accessibility & contrast

On white

6.12
#3161AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#3161AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161AB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161AB#FFFFFF#000000##FFFFFF
##3161AB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AE
Deuteranopia (green-blind)
#285DA9
Tritanopia (blue-blind)
#00727D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3161ab;
/* rgb */ color: rgb(49, 97, 171);
/* oklch */ color: oklch(49.8% 0.129 258.9);
Tailwind
colors: {
  custom: {
    50: '#788dc4',
    500: '#3161ab',
    950: '#000000',
  },
}
SCSS
$custom: #3161ab;
$custom-light: #788dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3161ab",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 171
  },
  "hsl": {
    "h": 216.393,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49792,
    "c": 0.12941,
    "h": 258.9
  },
  "luminance": 0.12143
}

Semantic roles & 50–950 ramp

primary
#3161AB
secondary
#C2A475
accent
#A449DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161AB

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

Preview Lab → · Contrast checker → · Palette generator →

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