#3161C5#3161C5

#3161C5 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.6% C 0.165 H 262.7°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#3161C5
RGBrgb(49, 97, 197)
HSLhsl(221, 60%, 48%)
HSVhsv(221, 75%, 77%)
CMYKcmyk(75.1%, 50.8%, 0%, 22.7%)
CIE-LABlab(43.11, 19.06, -56.92)
CIE-LCHlch(43.11, 60.03, 288.51°)
OKLaboklab(51.61% -0.0208 -0.1637)
OKLCHoklch(51.61% 0.165 262.7)
XYZxyz(15.6158, 13.2318, 54.5435)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161C5 #C59531
analogous
#31ABC5 #3161C5 #4B31C5
triadic
#3161C5 #C53161 #61C531
tetradic
#3161C5 #C531AB #C59531 #31C54B
square
#3161C5 #C531AB #C59531 #31C54B
split-complementary
#3161C5 #C54B31 #ABC531
monochromatic
#193163 #254994 #3161C5 #5D84D7 #8EA9E3

Accessibility & contrast

On white

5.76
#3161C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#3161C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161C5
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161C5#FFFFFF#000000##FFFFFF
##3161C51.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226DC9
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#00798A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3161c5;
/* rgb */ color: rgb(49, 97, 197);
/* oklch */ color: oklch(51.6% 0.165 262.7);
Tailwind
colors: {
  custom: {
    50: '#7e8dd7',
    500: '#3161c5',
    950: '#000000',
  },
}
SCSS
$custom: #3161c5;
$custom-light: #7e8dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#3161c5",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 197
  },
  "hsl": {
    "h": 220.541,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51611,
    "c": 0.16506,
    "h": 262.7
  },
  "luminance": 0.13234
}

Semantic roles & 50–950 ramp

primary
#3161C5
secondary
#CDB685
accent
#B044E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #3161C5

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

Preview Lab → · Contrast checker → · Palette generator →

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