#3171B8#3171B8

#3171B8 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.3% C 0.129 H 253.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#3171B8
RGBrgb(49, 113, 184)
HSLhsl(212, 58%, 46%)
HSVhsv(212, 73%, 72%)
CMYKcmyk(73.4%, 38.6%, 0%, 27.8%)
CIE-LABlab(46.87, 4.04, -43.37)
CIE-LCHlch(46.87, 43.55, 275.32°)
OKLaboklab(54.26% -0.0371 -0.1236)
OKLCHoklch(54.26% 0.129 253.3)
XYZxyz(15.8203, 15.9222, 47.5776)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171B8 #B87831
analogous
#31B4B8 #3171B8 #3531B8
triadic
#3171B8 #B83171 #71B831
tetradic
#3171B8 #B831B4 #B87831 #31B835
square
#3171B8 #B831B4 #B87831 #31B835
split-complementary
#3171B8 #B83531 #B4B831
monochromatic
#173657 #245388 #3171B8 #5590D2 #85AFDE

Accessibility & contrast

On white

5.02
#3171B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3171B8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171B8#FFFFFF#000000##FFFFFF
##3171B81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5076BB
Deuteranopia (green-blind)
#3B69B7
Tritanopia (blue-blind)
#00828B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3171b8;
/* rgb */ color: rgb(49, 113, 184);
/* oklch */ color: oklch(54.3% 0.129 253.3);
Tailwind
colors: {
  custom: {
    50: '#7b99ce',
    500: '#3171b8',
    950: '#000000',
  },
}
SCSS
$custom: #3171b8;
$custom-light: #7b99ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3171b8",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 211.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54258,
    "c": 0.12906,
    "h": 253.3
  },
  "luminance": 0.15924
}

Semantic roles & 50–950 ramp

primary
#3171B8
secondary
#C8A47D
accent
#9847E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3171B8

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

Preview Lab → · Contrast checker → · Palette generator →

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