#3171AB#3171AB

#3171AB is a mid, moderate cyan. Relative luminance 0.154; OKLCH L 53.5% C 0.112 H 248.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#3171AB
RGBrgb(49, 113, 171)
HSLhsl(209, 55%, 43%)
HSVhsv(209, 71%, 67%)
CMYKcmyk(71.3%, 33.9%, 0%, 32.9%)
CIE-LABlab(46.18, -0.73, -36.90)
CIE-LCHlch(46.18, 36.90, 268.87°)
OKLaboklab(53.49% -0.0406 -0.1047)
OKLCHoklch(53.49% 0.112 248.8)
XYZxyz(14.5197, 15.4019, 40.7278)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171AB #AB6B31
analogous
#31ABA8 #3171AB #3134AB
triadic
#3171AB #AB3171 #71AB31
tetradic
#3171AB #A831AB #AB6B31 #34AB31
square
#3171AB #A831AB #AB6B31 #34AB31
split-complementary
#3171AB #AB3134 #ABA831
monochromatic
#16324C #23527B #3171AB #4D90CC #7DADDA

Accessibility & contrast

On white

5.15
#3171AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#3171AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171AB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171AB#FFFFFF#000000##FFFFFF
##3171AB1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5774AD
Deuteranopia (green-blind)
#4668AA
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #3171ab;
/* rgb */ color: rgb(49, 113, 171);
/* oklch */ color: oklch(53.5% 0.112 248.8);
Tailwind
colors: {
  custom: {
    50: '#7899c4',
    500: '#3171ab',
    950: '#000000',
  },
}
SCSS
$custom: #3171ab;
$custom-light: #7899c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3171ab",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 208.525,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53489,
    "c": 0.11227,
    "h": 248.8
  },
  "luminance": 0.15403
}

Semantic roles & 50–950 ramp

primary
#3171AB
secondary
#C29A75
accent
#9049DF
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #3171AB

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

Preview Lab → · Contrast checker → · Palette generator →

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