#3161C2#3161C2

#3161C2 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.4% C 0.161 H 262.4°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#3161C2
RGBrgb(49, 97, 194)
HSLhsl(220, 60%, 48%)
HSVhsv(220, 75%, 76%)
CMYKcmyk(74.7%, 50%, 0%, 23.9%)
CIE-LABlab(42.91, 17.94, -55.52)
CIE-LCHlch(42.91, 58.34, 287.90°)
OKLaboklab(51.39% -0.0212 -0.1596)
OKLCHoklch(51.39% 0.161 262.4)
XYZxyz(15.2754, 13.0957, 52.7511)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161C2 #C29231
analogous
#31A9C2 #3161C2 #4931C2
triadic
#3161C2 #C23161 #61C231
tetradic
#3161C2 #C231A9 #C29231 #31C249
square
#3161C2 #C231A9 #C29231 #31C249
split-complementary
#3161C2 #C24931 #A9C231
monochromatic
#183060 #254991 #3161C2 #5B83D6 #8CA8E2

Accessibility & contrast

On white

5.80
#3161C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#3161C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161C2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161C2#FFFFFF#000000##FFFFFF
##3161C21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276CC6
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#007888
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3161c2;
/* rgb */ color: rgb(49, 97, 194);
/* oklch */ color: oklch(51.4% 0.161 262.4);
Tailwind
colors: {
  custom: {
    50: '#7d8dd5',
    500: '#3161c2',
    950: '#000000',
  },
}
SCSS
$custom: #3161c2;
$custom-light: #7d8dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#3161c2",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 194
  },
  "hsl": {
    "h": 220.138,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51391,
    "c": 0.16099,
    "h": 262.4
  },
  "luminance": 0.13097
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3161C2

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

Preview Lab → · Contrast checker → · Palette generator →

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