#3161CC#3161CC

#3161CC is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.1% C 0.174 H 263.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#3161CC
RGBrgb(49, 97, 204)
HSLhsl(221, 61%, 50%)
HSVhsv(221, 76%, 80%)
CMYKcmyk(76%, 52.5%, 0%, 20%)
CIE-LABlab(43.60, 21.69, -60.18)
CIE-LCHlch(43.60, 63.97, 289.82°)
OKLaboklab(52.13% -0.0201 -0.1733)
OKLCHoklch(52.13% 0.174 263.4)
XYZxyz(16.4365, 13.5601, 58.8661)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161CC #CC9C31
analogous
#31AFCC #3161CC #4E31CC
triadic
#3161CC #CC3161 #61CC31
tetradic
#3161CC #CC31AF #CC9C31 #31CC4E
square
#3161CC #CC31AF #CC9C31 #31CC4E
split-complementary
#3161CC #CC4E31 #AFCC31
monochromatic
#193269 #254A9B #3161CC #6186D9 #92ACE5

Accessibility & contrast

On white

5.66
#3161CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#3161CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161CC
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161CC#FFFFFF#000000##FFFFFF
##3161CC1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146ED0
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#007B8D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #3161cc;
/* rgb */ color: rgb(49, 97, 204);
/* oklch */ color: oklch(52.1% 0.174 263.4);
Tailwind
colors: {
  custom: {
    50: '#7f8ddc',
    500: '#3161cc',
    950: '#000000',
  },
}
SCSS
$custom: #3161cc;
$custom-light: #7f8ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#3161cc",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 204
  },
  "hsl": {
    "h": 221.419,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52134,
    "c": 0.17447,
    "h": 263.4
  },
  "luminance": 0.13562
}

Semantic roles & 50–950 ramp

primary
#3161CC
secondary
#D0BA89
accent
#B343E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #3161CC

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

Preview Lab → · Contrast checker → · Palette generator →

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