#3161C4#3161C4

#3161C4 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.5% C 0.164 H 262.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#3161C4
RGBrgb(49, 97, 196)
HSLhsl(220, 60%, 48%)
HSVhsv(220, 75%, 77%)
CMYKcmyk(75%, 50.5%, 0%, 23.1%)
CIE-LABlab(43.04, 18.69, -56.46)
CIE-LCHlch(43.04, 59.47, 288.31°)
OKLaboklab(51.54% -0.021 -0.1624)
OKLCHoklch(51.54% 0.164 262.6)
XYZxyz(15.5016, 13.1862, 53.9421)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161C4 #C49431
analogous
#31AAC4 #3161C4 #4A31C4
triadic
#3161C4 #C43161 #61C431
tetradic
#3161C4 #C431AA #C49431 #31C44A
square
#3161C4 #C431AA #C49431 #31C44A
split-complementary
#3161C4 #C44A31 #AAC431
monochromatic
#193162 #254993 #3161C4 #5C84D6 #8DA9E2

Accessibility & contrast

On white

5.77
#3161C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#3161C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161C4
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161C4#FFFFFF#000000##FFFFFF
##3161C41.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246DC8
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#007989
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3161c4;
/* rgb */ color: rgb(49, 97, 196);
/* oklch */ color: oklch(51.5% 0.164 262.6);
Tailwind
colors: {
  custom: {
    50: '#7d8dd6',
    500: '#3161c4',
    950: '#000000',
  },
}
SCSS
$custom: #3161c4;
$custom-light: #7d8dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3161c4",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 196
  },
  "hsl": {
    "h": 220.408,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51538,
    "c": 0.16371,
    "h": 262.6
  },
  "luminance": 0.13188
}

Semantic roles & 50–950 ramp

primary
#3161C4
secondary
#CDB584
accent
#AF45E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #3161C4

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

Preview Lab → · Contrast checker → · Palette generator →

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