#3172A5#3172A5

#3172A5 is a mid, moderate cyan. Relative luminance 0.154; OKLCH L 53.4% C 0.104 H 245.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#3172A5
RGBrgb(49, 114, 165)
HSLhsl(206, 54%, 42%)
HSVhsv(206, 70%, 65%)
CMYKcmyk(70.3%, 30.9%, 0%, 35.3%)
CIE-LABlab(46.18, -3.51, -33.38)
CIE-LCHlch(46.18, 33.57, 264.01°)
OKLaboklab(53.39% -0.0434 -0.0944)
OKLCHoklch(53.39% 0.104 245.3)
XYZxyz(14.0729, 15.4027, 37.8214)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172A5 #A56431
analogous
#31A59E #3172A5 #3138A5
triadic
#3172A5 #A53172 #72A531
tetradic
#3172A5 #9E31A5 #A56431 #38A531
square
#3172A5 #9E31A5 #A56431 #38A531
split-complementary
#3172A5 #A53138 #A59E31
monochromatic
#153147 #235176 #3172A5 #4A91C9 #79AED7

Accessibility & contrast

On white

5.15
#3172A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#3172A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172A5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172A5#FFFFFF#000000##FFFFFF
##3172A51.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B74A7
Deuteranopia (green-blind)
#4B68A4
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #3172a5;
/* rgb */ color: rgb(49, 114, 165);
/* oklch */ color: oklch(53.4% 0.104 245.3);
Tailwind
colors: {
  custom: {
    50: '#779ac0',
    500: '#3172a5',
    950: '#000000',
  },
}
SCSS
$custom: #3172a5;
$custom-light: #779ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#3172a5",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 165
  },
  "hsl": {
    "h": 206.379,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53392,
    "c": 0.10393,
    "h": 245.3
  },
  "luminance": 0.15404
}

Semantic roles & 50–950 ramp

primary
#3172A5
secondary
#C09472
accent
#8B4ADE
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #3172A5

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

Preview Lab → · Contrast checker → · Palette generator →

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