#3161BC#3161BC

#3161BC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.0% C 0.153 H 261.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#3161BC
RGBrgb(49, 97, 188)
HSLhsl(219, 59%, 46%)
HSVhsv(219, 74%, 74%)
CMYKcmyk(73.9%, 48.4%, 0%, 26.3%)
CIE-LABlab(42.51, 15.68, -52.67)
CIE-LCHlch(42.51, 54.96, 286.58°)
OKLaboklab(50.96% -0.022 -0.1512)
OKLCHoklch(50.96% 0.153 261.7)
XYZxyz(14.6152, 12.8316, 49.2737)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161BC #BC8C31
analogous
#31A7BC #3161BC #4731BC
triadic
#3161BC #BC3161 #61BC31
tetradic
#3161BC #BC31A7 #BC8C31 #31BC47
square
#3161BC #BC31A7 #BC8C31 #31BC47
split-complementary
#3161BC #BC4731 #A7BC31
monochromatic
#182F5B #24488B #3161BC #5782D3 #88A6E0

Accessibility & contrast

On white

5.89
#3161BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#3161BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161BC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161BC#FFFFFF#000000##FFFFFF
##3161BC1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6BBF
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3161bc;
/* rgb */ color: rgb(49, 97, 188);
/* oklch */ color: oklch(51.0% 0.153 261.7);
Tailwind
colors: {
  custom: {
    50: '#7c8dd1',
    500: '#3161bc',
    950: '#000000',
  },
}
SCSS
$custom: #3161bc;
$custom-light: #7c8dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3161bc",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 188
  },
  "hsl": {
    "h": 219.281,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50959,
    "c": 0.15283,
    "h": 261.7
  },
  "luminance": 0.12833
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3161BC

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

Preview Lab → · Contrast checker → · Palette generator →

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