#3171AA#3171AA

#3171AA is a mid, moderate cyan. Relative luminance 0.154; OKLCH L 53.4% C 0.111 H 248.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#3171AA
RGBrgb(49, 113, 170)
HSLhsl(208, 55%, 43%)
HSVhsv(208, 71%, 67%)
CMYKcmyk(71.2%, 33.5%, 0%, 33.3%)
CIE-LABlab(46.13, -1.09, -36.39)
CIE-LCHlch(46.13, 36.41, 268.28°)
OKLaboklab(53.43% -0.0409 -0.1032)
OKLCHoklch(53.43% 0.111 248.4)
XYZxyz(14.4247, 15.3639, 40.2277)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171AA #AA6A31
analogous
#31AAA6 #3171AA #3135AA
triadic
#3171AA #AA3171 #71AA31
tetradic
#3171AA #A631AA #AA6A31 #35AA31
square
#3171AA #A631AA #AA6A31 #35AA31
split-complementary
#3171AA #AA3135 #AAA631
monochromatic
#16324B #23517A #3171AA #4D90CC #7CADD9

Accessibility & contrast

On white

5.16
#3171AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#3171AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3171AA#FFFFFF#000000##FFFFFF
##3171AA1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3171aa;
/* rgb */ color: rgb(49, 113, 170);
/* oklch */ color: oklch(53.4% 0.111 248.4);
Tailwind
colors: {
  custom: {
    50: '#7899c3',
    500: '#3171aa',
    950: '#000000',
  },
}
SCSS
$custom: #3171aa;
$custom-light: #7899c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3171aa",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 170
  },
  "hsl": {
    "h": 208.264,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53432,
    "c": 0.11101,
    "h": 248.4
  },
  "luminance": 0.15366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3171AA

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

Preview Lab → · Contrast checker → · Palette generator →

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