#3171B2#3171B2

#3171B2 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.121 H 251.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#3171B2
RGBrgb(49, 113, 178)
HSLhsl(210, 57%, 45%)
HSVhsv(210, 72%, 70%)
CMYKcmyk(72.5%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.55, 1.83, -40.40)
CIE-LCHlch(46.55, 40.44, 272.59°)
OKLaboklab(53.9% -0.0387 -0.1149)
OKLCHoklch(53.9% 0.121 251.4)
XYZxyz(15.2046, 15.6759, 44.3353)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171B2 #B27231
analogous
#31B1B2 #3171B2 #3231B2
triadic
#3171B2 #B23171 #71B231
tetradic
#3171B2 #B231B1 #B27231 #31B232
square
#3171B2 #B231B1 #B27231 #31B232
split-complementary
#3171B2 #B23231 #B1B231
monochromatic
#173452 #245382 #3171B2 #5190CF #81AEDC

Accessibility & contrast

On white

5.08
#3171B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#3171B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3171B2#FFFFFF#000000##FFFFFF
##3171B21.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#4069B1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3171b2;
/* rgb */ color: rgb(49, 113, 178);
/* oklch */ color: oklch(53.9% 0.121 251.4);
Tailwind
colors: {
  custom: {
    50: '#7999c9',
    500: '#3171b2',
    950: '#000000',
  },
}
SCSS
$custom: #3171b2;
$custom-light: #7999c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3171b2",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 210.233,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53897,
    "c": 0.12125,
    "h": 251.4
  },
  "luminance": 0.15678
}

Semantic roles & 50–950 ramp

primary
#3171B2
secondary
#C5A079
accent
#9448E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3171B2

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

Preview Lab → · Contrast checker → · Palette generator →

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