#3161C8#3161C8

#3161C8 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 51.8% C 0.169 H 263.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#3161C8
RGBrgb(49, 97, 200)
HSLhsl(221, 61%, 49%)
HSVhsv(221, 76%, 78%)
CMYKcmyk(75.5%, 51.5%, 0%, 21.6%)
CIE-LABlab(43.32, 20.19, -58.32)
CIE-LCHlch(43.32, 61.72, 289.09°)
OKLaboklab(51.83% -0.0205 -0.1679)
OKLCHoklch(51.83% 0.169 263)
XYZxyz(15.9629, 13.3707, 56.3719)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161C8 #C89831
analogous
#31ADC8 #3161C8 #4D31C8
triadic
#3161C8 #C83161 #61C831
tetradic
#3161C8 #C831AD #C89831 #31C84D
square
#3161C8 #C831AD #C89831 #31C84D
split-complementary
#3161C8 #C84D31 #ADC831
monochromatic
#193166 #254997 #3161C8 #5F85D8 #90AAE4

Accessibility & contrast

On white

5.72
#3161C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#3161C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161C8
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161C8#FFFFFF#000000##FFFFFF
##3161C81.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6ECC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#007A8B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3161c8;
/* rgb */ color: rgb(49, 97, 200);
/* oklch */ color: oklch(51.8% 0.169 263.0);
Tailwind
colors: {
  custom: {
    50: '#7e8dd9',
    500: '#3161c8',
    950: '#000000',
  },
}
SCSS
$custom: #3161c8;
$custom-light: #7e8dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3161c8",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 200
  },
  "hsl": {
    "h": 220.927,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51834,
    "c": 0.16911,
    "h": 263
  },
  "luminance": 0.13372
}

Semantic roles & 50–950 ramp

primary
#3161C8
secondary
#CEB786
accent
#B144E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #3161C8

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

Preview Lab → · Contrast checker → · Palette generator →

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