#3171AC#3171AC

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

Color values

HEX#3171AC
RGBrgb(49, 113, 172)
HSLhsl(209, 56%, 43%)
HSVhsv(209, 72%, 67%)
CMYKcmyk(71.5%, 34.3%, 0%, 32.5%)
CIE-LABlab(46.23, -0.37, -37.40)
CIE-LCHlch(46.23, 37.40, 269.44°)
OKLaboklab(53.55% -0.0403 -0.1061)
OKLCHoklch(53.55% 0.114 249.2)
XYZxyz(14.6153, 15.4402, 41.2317)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171AC #AC6C31
analogous
#31ACA9 #3171AC #3134AC
triadic
#3171AC #AC3171 #71AC31
tetradic
#3171AC #A931AC #AC6C31 #34AC31
square
#3171AC #A931AC #AC6C31 #34AC31
split-complementary
#3171AC #AC3134 #ACA931
monochromatic
#16324D #23527C #3171AC #4E90CC #7DAEDA

Accessibility & contrast

On white

5.14
#3171AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#3171AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171AC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171AC#FFFFFF#000000##FFFFFF
##3171AC1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5674AE
Deuteranopia (green-blind)
#4568AB
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #3171ac;
/* rgb */ color: rgb(49, 113, 172);
/* oklch */ color: oklch(53.5% 0.114 249.2);
Tailwind
colors: {
  custom: {
    50: '#7899c5',
    500: '#3171ac',
    950: '#000000',
  },
}
SCSS
$custom: #3171ac;
$custom-light: #7899c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3171ac",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 208.78,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53547,
    "c": 0.11354,
    "h": 249.2
  },
  "luminance": 0.15442
}

Semantic roles & 50–950 ramp

primary
#3171AC
secondary
#C39B76
accent
#9149DF
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3171AC

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

Preview Lab → · Contrast checker → · Palette generator →

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