#3171BC#3171BC

#3171BC is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.134 H 254.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#3171BC
RGBrgb(49, 113, 188)
HSLhsl(212, 59%, 46%)
HSVhsv(212, 74%, 74%)
CMYKcmyk(73.9%, 39.9%, 0%, 26.3%)
CIE-LABlab(47.10, 5.52, -45.33)
CIE-LCHlch(47.10, 45.66, 276.94°)
OKLaboklab(54.5% -0.0362 -0.1293)
OKLCHoklch(54.5% 0.134 254.4)
XYZxyz(16.2455, 16.0922, 49.8171)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171BC #BC7C31
analogous
#31B7BC #3171BC #3731BC
triadic
#3171BC #BC3171 #71BC31
tetradic
#3171BC #BC31B7 #BC7C31 #31BC37
square
#3171BC #BC31B7 #BC7C31 #31BC37
split-complementary
#3171BC #BC3731 #B7BC31
monochromatic
#18375B #24548B #3171BC #5790D3 #88B0E0

Accessibility & contrast

On white

4.98
#3171BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#3171BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171BC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171BC#FFFFFF#000000##FFFFFF
##3171BC1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E77BF
Deuteranopia (green-blind)
#376ABA
Tritanopia (blue-blind)
#00838D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3171bc;
/* rgb */ color: rgb(49, 113, 188);
/* oklch */ color: oklch(54.5% 0.134 254.4);
Tailwind
colors: {
  custom: {
    50: '#7b99d0',
    500: '#3171bc',
    950: '#000000',
  },
}
SCSS
$custom: #3171bc;
$custom-light: #7b99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3171bc",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 212.374,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54504,
    "c": 0.13432,
    "h": 254.4
  },
  "luminance": 0.16094
}

Semantic roles & 50–950 ramp

primary
#3171BC
secondary
#CAA77F
accent
#9A46E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3171BC

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

Preview Lab → · Contrast checker → · Palette generator →

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