#3172AB#3172AB

#3172AB is a mid, moderate cyan. Relative luminance 0.156; OKLCH L 53.7% C 0.111 H 248.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#3172AB
RGBrgb(49, 114, 171)
HSLhsl(208, 55%, 43%)
HSVhsv(208, 71%, 67%)
CMYKcmyk(71.3%, 33.3%, 0%, 32.9%)
CIE-LABlab(46.48, -1.34, -36.42)
CIE-LCHlch(46.48, 36.45, 267.89°)
OKLaboklab(53.73% -0.0416 -0.1033)
OKLCHoklch(53.73% 0.111 248.1)
XYZxyz(14.6318, 15.6263, 40.7652)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172AB #AB6A31
analogous
#31ABA7 #3172AB #3135AB
triadic
#3172AB #AB3172 #72AB31
tetradic
#3172AB #A731AB #AB6A31 #35AB31
square
#3172AB #A731AB #AB6A31 #35AB31
split-complementary
#3172AB #AB3135 #ABA731
monochromatic
#16334C #23527B #3172AB #4D91CC #7DAEDA

Accessibility & contrast

On white

5.09
#3172AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#3172AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172AB
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172AB#FFFFFF#000000##FFFFFF
##3172AB1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5874AD
Deuteranopia (green-blind)
#4769AA
Tritanopia (blue-blind)
#008086
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3172ab;
/* rgb */ color: rgb(49, 114, 171);
/* oklch */ color: oklch(53.7% 0.111 248.1);
Tailwind
colors: {
  custom: {
    50: '#789ac4',
    500: '#3172ab',
    950: '#000000',
  },
}
SCSS
$custom: #3172ab;
$custom-light: #789ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#3172ab",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 171
  },
  "hsl": {
    "h": 208.033,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53726,
    "c": 0.11134,
    "h": 248.1
  },
  "luminance": 0.15628
}

Semantic roles & 50–950 ramp

primary
#3172AB
secondary
#C29975
accent
#8F49DF
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #3172AB

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

Preview Lab → · Contrast checker → · Palette generator →

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