#3171BE#3171BE

#3171BE is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.6% C 0.137 H 254.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#3171BE
RGBrgb(49, 113, 190)
HSLhsl(213, 59%, 47%)
HSVhsv(213, 74%, 75%)
CMYKcmyk(74.2%, 40.5%, 0%, 25.5%)
CIE-LABlab(47.21, 6.26, -46.30)
CIE-LCHlch(47.21, 46.72, 277.70°)
OKLaboklab(54.63% -0.0357 -0.1322)
OKLCHoklch(54.63% 0.137 254.9)
XYZxyz(16.4626, 16.1791, 50.9605)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171BE #BE7E31
analogous
#31B8BE #3171BE #3831BE
triadic
#3171BE #BE3171 #71BE31
tetradic
#3171BE #BE31B8 #BE7E31 #31BE38
square
#3171BE #BE31B8 #BE7E31 #31BE38
split-complementary
#3171BE #BE3831 #B8BE31
monochromatic
#18375D #24548D #3171BE #5890D4 #89B1E1

Accessibility & contrast

On white

4.96
#3171BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#3171BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171BE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171BE#FFFFFF#000000##FFFFFF
##3171BE1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C77C1
Deuteranopia (green-blind)
#356ABC
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3171be;
/* rgb */ color: rgb(49, 113, 190);
/* oklch */ color: oklch(54.6% 0.137 254.9);
Tailwind
colors: {
  custom: {
    50: '#7c99d2',
    500: '#3171be',
    950: '#000000',
  },
}
SCSS
$custom: #3171be;
$custom-light: #7c99d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3171be",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 190
  },
  "hsl": {
    "h": 212.766,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54629,
    "c": 0.13695,
    "h": 254.9
  },
  "luminance": 0.16181
}

Semantic roles & 50–950 ramp

primary
#3171BE
secondary
#CAA980
accent
#9B46E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3171BE

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

Preview Lab → · Contrast checker → · Palette generator →

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