#3172C5#3172C5

#3172C5 is a mid, vivid cyan. Relative luminance 0.167; OKLCH L 55.3% C 0.145 H 256.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#3172C5
RGBrgb(49, 114, 197)
HSLhsl(214, 60%, 48%)
HSVhsv(214, 75%, 77%)
CMYKcmyk(75.1%, 42.1%, 0%, 22.7%)
CIE-LABlab(47.90, 8.24, -49.23)
CIE-LCHlch(47.90, 49.91, 279.51°)
OKLaboklab(55.3% -0.0351 -0.1408)
OKLCHoklch(55.3% 0.145 256)
XYZxyz(17.3583, 16.7168, 55.1243)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172C5 #C58431
analogous
#31BCC5 #3172C5 #3A31C5
triadic
#3172C5 #C53172 #72C531
tetradic
#3172C5 #C531BC #C58431 #31C53A
square
#3172C5 #C531BC #C58431 #31C53A
split-complementary
#3172C5 #C53A31 #BCC531
monochromatic
#193963 #255694 #3172C5 #5D92D7 #8EB3E3

Accessibility & contrast

On white

4.83
#3172C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#3172C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172C5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172C5#FFFFFF#000000##FFFFFF
##3172C51.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4979C8
Deuteranopia (green-blind)
#2F6BC3
Tritanopia (blue-blind)
#008692
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3172c5;
/* rgb */ color: rgb(49, 114, 197);
/* oklch */ color: oklch(55.3% 0.145 256.0);
Tailwind
colors: {
  custom: {
    50: '#7d9ad7',
    500: '#3172c5',
    950: '#000000',
  },
}
SCSS
$custom: #3172c5;
$custom-light: #7d9ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#3172c5",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 197
  },
  "hsl": {
    "h": 213.649,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.55298,
    "c": 0.14509,
    "h": 256
  },
  "luminance": 0.16719
}

Semantic roles & 50–950 ramp

primary
#3172C5
secondary
#CDAD85
accent
#9E44E3
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3172C5

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

Preview Lab → · Contrast checker → · Palette generator →

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