#3172AC#3172AC

#3172AC is a mid, moderate cyan. Relative luminance 0.157; OKLCH L 53.8% C 0.113 H 248.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#3172AC
RGBrgb(49, 114, 172)
HSLhsl(208, 56%, 43%)
HSVhsv(208, 72%, 67%)
CMYKcmyk(71.5%, 33.7%, 0%, 32.5%)
CIE-LABlab(46.53, -0.98, -36.93)
CIE-LCHlch(46.53, 36.94, 268.49°)
OKLaboklab(53.78% -0.0413 -0.1047)
OKLCHoklch(53.78% 0.113 248.5)
XYZxyz(14.7275, 15.6645, 41.2691)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172AC #AC6B31
analogous
#31ACA8 #3172AC #3134AC
triadic
#3172AC #AC3172 #72AC31
tetradic
#3172AC #A831AC #AC6B31 #34AC31
square
#3172AC #A831AC #AC6B31 #34AC31
split-complementary
#3172AC #AC3134 #ACA831
monochromatic
#16334D #23527C #3172AC #4E91CC #7DAEDA

Accessibility & contrast

On white

5.08
#3172AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3172AC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172AC#FFFFFF#000000##FFFFFF
##3172AC1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5875AE
Deuteranopia (green-blind)
#4669AB
Tritanopia (blue-blind)
#008087
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3172ac;
/* rgb */ color: rgb(49, 114, 172);
/* oklch */ color: oklch(53.8% 0.113 248.5);
Tailwind
colors: {
  custom: {
    50: '#789ac5',
    500: '#3172ac',
    950: '#000000',
  },
}
SCSS
$custom: #3172ac;
$custom-light: #789ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#3172ac",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 172
  },
  "hsl": {
    "h": 208.293,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.53782,
    "c": 0.1126,
    "h": 248.5
  },
  "luminance": 0.15666
}

Semantic roles & 50–950 ramp

primary
#3172AC
secondary
#C39A76
accent
#9049DF
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #3172AC

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

Preview Lab → · Contrast checker → · Palette generator →

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