#3161B4#3161B4

#3161B4 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.4% C 0.142 H 260.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#3161B4
RGBrgb(49, 97, 180)
HSLhsl(218, 57%, 45%)
HSVhsv(218, 73%, 71%)
CMYKcmyk(72.8%, 46.1%, 0%, 29.4%)
CIE-LABlab(41.99, 12.67, -48.83)
CIE-LCHlch(41.99, 50.45, 284.55°)
OKLaboklab(50.4% -0.0233 -0.1399)
OKLCHoklch(50.4% 0.142 260.5)
XYZxyz(13.7766, 12.4962, 44.8571)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B4 #B48431
analogous
#31A3B4 #3161B4 #4231B4
triadic
#3161B4 #B43161 #61B431
tetradic
#3161B4 #B431A3 #B48431 #31B442
square
#3161B4 #B431A3 #B48431 #31B442
split-complementary
#3161B4 #B44231 #A3B431
monochromatic
#172D54 #244784 #3161B4 #5280D0 #82A4DD

Accessibility & contrast

On white

6.00
#3161B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#3161B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B4
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B4#FFFFFF#000000##FFFFFF
##3161B41.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366AB7
Deuteranopia (green-blind)
#1A5DB2
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3161b4;
/* rgb */ color: rgb(49, 97, 180);
/* oklch */ color: oklch(50.4% 0.142 260.5);
Tailwind
colors: {
  custom: {
    50: '#7a8dcb',
    500: '#3161b4',
    950: '#000000',
  },
}
SCSS
$custom: #3161b4;
$custom-light: #7a8dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b4",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 180
  },
  "hsl": {
    "h": 218.015,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50399,
    "c": 0.14184,
    "h": 260.5
  },
  "luminance": 0.12498
}

Semantic roles & 50–950 ramp

primary
#3161B4
secondary
#C6AB7B
accent
#A847E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161B4

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

Preview Lab → · Contrast checker → · Palette generator →

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