#3171B9#3171B9

#3171B9 is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.3% C 0.130 H 253.6°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#3171B9
RGBrgb(49, 113, 185)
HSLhsl(212, 58%, 46%)
HSVhsv(212, 74%, 73%)
CMYKcmyk(73.5%, 38.9%, 0%, 27.5%)
CIE-LABlab(46.93, 4.41, -43.86)
CIE-LCHlch(46.93, 44.08, 275.74°)
OKLaboklab(54.32% -0.0369 -0.125)
OKLCHoklch(54.32% 0.13 253.6)
XYZxyz(15.9255, 15.9642, 48.1316)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171B9 #B97931
analogous
#31B5B9 #3171B9 #3531B9
triadic
#3171B9 #B93171 #71B931
tetradic
#3171B9 #B931B5 #B97931 #31B935
square
#3171B9 #B931B5 #B97931 #31B935
split-complementary
#3171B9 #B93531 #B5B931
monochromatic
#173658 #245389 #3171B9 #5590D2 #86B0DF

Accessibility & contrast

On white

5.01
#3171B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#3171B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171B9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171B9#FFFFFF#000000##FFFFFF
##3171B91.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F76BC
Deuteranopia (green-blind)
#3A69B8
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3171b9;
/* rgb */ color: rgb(49, 113, 185);
/* oklch */ color: oklch(54.3% 0.130 253.6);
Tailwind
colors: {
  custom: {
    50: '#7b99ce',
    500: '#3171b9',
    950: '#000000',
  },
}
SCSS
$custom: #3171b9;
$custom-light: #7b99ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3171b9",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 185
  },
  "hsl": {
    "h": 211.765,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54319,
    "c": 0.13037,
    "h": 253.6
  },
  "luminance": 0.15966
}

Semantic roles & 50–950 ramp

primary
#3171B9
secondary
#C8A57D
accent
#9846E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3171B9

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

Preview Lab → · Contrast checker → · Palette generator →

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