#3171C5#3171C5

#3171C5 is a mid, vivid cyan. Relative luminance 0.165; OKLCH L 55.1% C 0.146 H 256.5°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#3171C5
RGBrgb(49, 113, 197)
HSLhsl(214, 60%, 48%)
HSVhsv(214, 75%, 77%)
CMYKcmyk(75.1%, 42.6%, 0%, 22.7%)
CIE-LABlab(47.61, 8.87, -49.69)
CIE-LCHlch(47.61, 50.47, 280.12°)
OKLaboklab(55.08% -0.0342 -0.1421)
OKLCHoklch(55.08% 0.146 256.5)
XYZxyz(17.2461, 16.4925, 55.0869)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171C5 #C58531
analogous
#31BBC5 #3171C5 #3B31C5
triadic
#3171C5 #C53171 #71C531
tetradic
#3171C5 #C531BB #C58531 #31C53B
square
#3171C5 #C531BB #C58531 #31C53B
split-complementary
#3171C5 #C53B31 #BBC531
monochromatic
#193963 #255594 #3171C5 #5D91D7 #8EB2E3

Accessibility & contrast

On white

4.89
#3171C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#3171C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171C5
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171C5#FFFFFF#000000##FFFFFF
##3171C51.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4878C8
Deuteranopia (green-blind)
#2D6BC3
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3171c5;
/* rgb */ color: rgb(49, 113, 197);
/* oklch */ color: oklch(55.1% 0.146 256.5);
Tailwind
colors: {
  custom: {
    50: '#7d99d7',
    500: '#3171c5',
    950: '#000000',
  },
}
SCSS
$custom: #3171c5;
$custom-light: #7d99d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3171c5",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 197
  },
  "hsl": {
    "h": 214.054,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55076,
    "c": 0.14621,
    "h": 256.5
  },
  "luminance": 0.16494
}

Semantic roles & 50–950 ramp

primary
#3171C5
secondary
#CDAE85
accent
#9F44E3
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3171C5

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

Preview Lab → · Contrast checker → · Palette generator →

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