#3171BD#3171BD

#3171BD is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.6% C 0.136 H 254.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#3171BD
RGBrgb(49, 113, 189)
HSLhsl(213, 59%, 47%)
HSVhsv(213, 74%, 74%)
CMYKcmyk(74.1%, 40.2%, 0%, 25.9%)
CIE-LABlab(47.15, 5.89, -45.81)
CIE-LCHlch(47.15, 46.19, 277.33°)
OKLaboklab(54.57% -0.036 -0.1308)
OKLCHoklch(54.57% 0.136 254.6)
XYZxyz(16.3537, 16.1355, 50.3868)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171BD #BD7D31
analogous
#31B7BD #3171BD #3731BD
triadic
#3171BD #BD3171 #71BD31
tetradic
#3171BD #BD31B7 #BD7D31 #31BD37
square
#3171BD #BD31B7 #BD7D31 #31BD37
split-complementary
#3171BD #BD3731 #B7BD31
monochromatic
#18375C #24548C #3171BD #5890D4 #88B0E0

Accessibility & contrast

On white

4.97
#3171BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#3171BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171BD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171BD#FFFFFF#000000##FFFFFF
##3171BD1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#366ABB
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3171bd;
/* rgb */ color: rgb(49, 113, 189);
/* oklch */ color: oklch(54.6% 0.136 254.6);
Tailwind
colors: {
  custom: {
    50: '#7c99d1',
    500: '#3171bd',
    950: '#000000',
  },
}
SCSS
$custom: #3171bd;
$custom-light: #7c99d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3171bd",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 212.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54567,
    "c": 0.13563,
    "h": 254.6
  },
  "luminance": 0.16137
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3171BD

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

Preview Lab → · Contrast checker → · Palette generator →

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