#3171C9#3171C9

#3171C9 is a mid, vivid cyan. Relative luminance 0.167; OKLCH L 55.3% C 0.152 H 257.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#3171C9
RGBrgb(49, 113, 201)
HSLhsl(215, 61%, 49%)
HSVhsv(215, 76%, 79%)
CMYKcmyk(75.6%, 43.8%, 0%, 21.2%)
CIE-LABlab(47.85, 10.36, -51.60)
CIE-LCHlch(47.85, 52.63, 281.35°)
OKLaboklab(55.34% -0.0334 -0.1478)
OKLCHoklch(55.34% 0.152 257.3)
XYZxyz(17.7105, 16.6782, 57.5328)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171C9 #C98931
analogous
#31BDC9 #3171C9 #3D31C9
triadic
#3171C9 #C93171 #71C931
tetradic
#3171C9 #C931BD #C98931 #31C93D
square
#3171C9 #C931BD #C98931 #31C93D
split-complementary
#3171C9 #C93D31 #BDC931
monochromatic
#193A67 #255598 #3171C9 #5F92D8 #90B4E4

Accessibility & contrast

On white

4.84
#3171C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#3171C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3171C9#FFFFFF#000000##FFFFFF
##3171C91.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4579CC
Deuteranopia (green-blind)
#276BC7
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3171c9;
/* rgb */ color: rgb(49, 113, 201);
/* oklch */ color: oklch(55.3% 0.152 257.3);
Tailwind
colors: {
  custom: {
    50: '#7e99da',
    500: '#3171c9',
    950: '#000000',
  },
}
SCSS
$custom: #3171c9;
$custom-light: #7e99da;
$custom-dark: #000000;
JSON
{
  "hex": "#3171c9",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 201
  },
  "hsl": {
    "h": 214.737,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.55337,
    "c": 0.15151,
    "h": 257.3
  },
  "luminance": 0.1668
}

Semantic roles & 50–950 ramp

primary
#3171C9
secondary
#CFB187
accent
#A144E4
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #3171C9

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

Preview Lab → · Contrast checker → · Palette generator →

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