#3171BA#3171BA

#3171BA is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.4% C 0.132 H 253.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#3171BA
RGBrgb(49, 113, 186)
HSLhsl(212, 58%, 46%)
HSVhsv(212, 74%, 73%)
CMYKcmyk(73.7%, 39.2%, 0%, 27.1%)
CIE-LABlab(46.98, 4.78, -44.35)
CIE-LCHlch(46.98, 44.61, 276.15°)
OKLaboklab(54.38% -0.0367 -0.1265)
OKLCHoklch(54.38% 0.132 253.8)
XYZxyz(16.0314, 16.0066, 48.6895)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171BA #BA7A31
analogous
#31B5BA #3171BA #3531BA
triadic
#3171BA #BA3171 #71BA31
tetradic
#3171BA #BA31B5 #BA7A31 #31BA35
square
#3171BA #BA31B5 #BA7A31 #31BA35
split-complementary
#3171BA #BA3531 #B5BA31
monochromatic
#173659 #24548A #3171BA #5690D2 #86B0DF

Accessibility & contrast

On white

5.00
#3171BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#3171BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171BA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171BA#FFFFFF#000000##FFFFFF
##3171BA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F76BD
Deuteranopia (green-blind)
#396AB9
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3171ba;
/* rgb */ color: rgb(49, 113, 186);
/* oklch */ color: oklch(54.4% 0.132 253.8);
Tailwind
colors: {
  custom: {
    50: '#7b99cf',
    500: '#3171ba',
    950: '#000000',
  },
}
SCSS
$custom: #3171ba;
$custom-light: #7b99cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3171ba",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 211.971,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5438,
    "c": 0.13169,
    "h": 253.8
  },
  "luminance": 0.16008
}

Semantic roles & 50–950 ramp

primary
#3171BA
secondary
#C9A67E
accent
#9946E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3171BA

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

Preview Lab → · Contrast checker → · Palette generator →

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