#3161BD#3161BD

#3161BD is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.0% C 0.154 H 261.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#3161BD
RGBrgb(49, 97, 189)
HSLhsl(219, 59%, 47%)
HSVhsv(219, 74%, 74%)
CMYKcmyk(74.1%, 48.7%, 0%, 25.9%)
CIE-LABlab(42.57, 16.05, -53.15)
CIE-LCHlch(42.57, 55.52, 286.81°)
OKLaboklab(51.03% -0.0219 -0.1526)
OKLCHoklch(51.03% 0.154 261.8)
XYZxyz(14.7233, 12.8749, 49.8434)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161BD #BD8D31
analogous
#31A7BD #3161BD #4731BD
triadic
#3161BD #BD3161 #61BD31
tetradic
#3161BD #BD31A7 #BD8D31 #31BD47
square
#3161BD #BD31A7 #BD8D31 #31BD47
split-complementary
#3161BD #BD4731 #A7BD31
monochromatic
#182F5C #24488C #3161BD #5882D4 #88A6E0

Accessibility & contrast

On white

5.87
#3161BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#3161BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161BD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161BD#FFFFFF#000000##FFFFFF
##3161BD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6BC0
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#007786
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3161bd;
/* rgb */ color: rgb(49, 97, 189);
/* oklch */ color: oklch(51.0% 0.154 261.8);
Tailwind
colors: {
  custom: {
    50: '#7c8dd1',
    500: '#3161bd',
    950: '#000000',
  },
}
SCSS
$custom: #3161bd;
$custom-light: #7c8dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3161bd",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 189
  },
  "hsl": {
    "h": 219.429,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5103,
    "c": 0.15419,
    "h": 261.8
  },
  "luminance": 0.12876
}

Semantic roles & 50–950 ramp

primary
#3161BD
secondary
#CAB180
accent
#AC46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3161BD

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

Preview Lab → · Contrast checker → · Palette generator →

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