#3171AF#3171AF

#3171AF is a mid, moderate cyan. Relative luminance 0.156; OKLCH L 53.7% C 0.117 H 250.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#3171AF
RGBrgb(49, 113, 175)
HSLhsl(210, 56%, 44%)
HSVhsv(210, 72%, 69%)
CMYKcmyk(72%, 35.4%, 0%, 31.4%)
CIE-LABlab(46.39, 0.73, -38.90)
CIE-LCHlch(46.39, 38.91, 271.07°)
OKLaboklab(53.72% -0.0395 -0.1105)
OKLCHoklch(53.72% 0.117 250.3)
XYZxyz(14.9067, 15.5567, 42.7663)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171AF #AF6F31
analogous
#31AFAE #3171AF #3132AF
triadic
#3171AF #AF3171 #71AF31
tetradic
#3171AF #AE31AF #AF6F31 #32AF31
square
#3171AF #AE31AF #AF6F31 #32AF31
split-complementary
#3171AF #AF3132 #AFAE31
monochromatic
#16334F #24527F #3171AF #4F90CE #7FAEDB

Accessibility & contrast

On white

5.11
#3171AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#3171AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3171AF#FFFFFF#000000##FFFFFF
##3171AF1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5574B2
Deuteranopia (green-blind)
#4369AE
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3171af;
/* rgb */ color: rgb(49, 113, 175);
/* oklch */ color: oklch(53.7% 0.117 250.3);
Tailwind
colors: {
  custom: {
    50: '#7999c7',
    500: '#3171af',
    950: '#000000',
  },
}
SCSS
$custom: #3171af;
$custom-light: #7999c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3171af",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 209.524,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5372,
    "c": 0.11737,
    "h": 250.3
  },
  "luminance": 0.15558
}

Semantic roles & 50–950 ramp

primary
#3171AF
secondary
#C49D78
accent
#9348E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3171AF

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

Preview Lab → · Contrast checker → · Palette generator →

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