#3171B7#3171B7

#3171B7 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.128 H 253.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#3171B7
RGBrgb(49, 113, 183)
HSLhsl(211, 58%, 45%)
HSVhsv(211, 73%, 72%)
CMYKcmyk(73.2%, 38.3%, 0%, 28.2%)
CIE-LABlab(46.82, 3.67, -42.87)
CIE-LCHlch(46.82, 43.03, 274.89°)
OKLaboklab(54.2% -0.0374 -0.1222)
OKLCHoklch(54.2% 0.128 253)
XYZxyz(15.7158, 15.8804, 47.0275)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171B7 #B77731
analogous
#31B4B7 #3171B7 #3431B7
triadic
#3171B7 #B73171 #71B731
tetradic
#3171B7 #B731B4 #B77731 #31B734
square
#3171B7 #B731B4 #B77731 #31B734
split-complementary
#3171B7 #B73431 #B4B731
monochromatic
#173556 #245387 #3171B7 #5490D1 #84AFDE

Accessibility & contrast

On white

5.03
#3171B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#3171B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171B7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171B7#FFFFFF#000000##FFFFFF
##3171B71.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5176BA
Deuteranopia (green-blind)
#3C69B6
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3171b7;
/* rgb */ color: rgb(49, 113, 183);
/* oklch */ color: oklch(54.2% 0.128 253.0);
Tailwind
colors: {
  custom: {
    50: '#7a99cd',
    500: '#3171b7',
    950: '#000000',
  },
}
SCSS
$custom: #3171b7;
$custom-light: #7a99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3171b7",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 211.343,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54197,
    "c": 0.12776,
    "h": 253
  },
  "luminance": 0.15882
}

Semantic roles & 50–950 ramp

primary
#3171B7
secondary
#C8A47C
accent
#9747E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3171B7

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

Preview Lab → · Contrast checker → · Palette generator →

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