#3172C1#3172C1

#3172C1 is a mid, vivid cyan. Relative luminance 0.165; OKLCH L 55.0% C 0.140 H 255.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#3172C1
RGBrgb(49, 114, 193)
HSLhsl(213, 60%, 47%)
HSVhsv(213, 75%, 76%)
CMYKcmyk(74.6%, 40.9%, 0%, 24.3%)
CIE-LABlab(47.67, 6.75, -47.30)
CIE-LCHlch(47.67, 47.78, 278.13°)
OKLaboklab(55.04% -0.036 -0.1351)
OKLCHoklch(55.04% 0.14 255.1)
XYZxyz(16.9060, 16.5359, 52.7425)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172C1 #C18031
analogous
#31BAC1 #3172C1 #3831C1
triadic
#3172C1 #C13172 #72C131
tetradic
#3172C1 #C131BA #C18031 #31C138
square
#3172C1 #C131BA #C18031 #31C138
split-complementary
#3172C1 #C13831 #BAC131
monochromatic
#18385F #255590 #3172C1 #5A92D5 #8BB2E2

Accessibility & contrast

On white

4.88
#3172C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#3172C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172C1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172C1#FFFFFF#000000##FFFFFF
##3172C11.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C78C4
Deuteranopia (green-blind)
#346BBF
Tritanopia (blue-blind)
#008590
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3172c1;
/* rgb */ color: rgb(49, 114, 193);
/* oklch */ color: oklch(55.0% 0.140 255.1);
Tailwind
colors: {
  custom: {
    50: '#7c9ad4',
    500: '#3172c1',
    950: '#000000',
  },
}
SCSS
$custom: #3172c1;
$custom-light: #7c9ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#3172c1",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 193
  },
  "hsl": {
    "h": 212.917,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55044,
    "c": 0.13981,
    "h": 255.1
  },
  "luminance": 0.16538
}

Semantic roles & 50–950 ramp

primary
#3172C1
secondary
#CCAA82
accent
#9C45E3
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3172C1

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

Preview Lab → · Contrast checker → · Palette generator →

#3172C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva