#3172BD#3172BD

#3172BD is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 54.8% C 0.135 H 254.1°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#3172BD
RGBrgb(49, 114, 189)
HSLhsl(212, 59%, 47%)
HSVhsv(212, 74%, 74%)
CMYKcmyk(74.1%, 39.7%, 0%, 25.9%)
CIE-LABlab(47.44, 5.27, -45.35)
CIE-LCHlch(47.44, 45.66, 276.63°)
OKLaboklab(54.79% -0.0369 -0.1294)
OKLCHoklch(54.79% 0.135 254.1)
XYZxyz(16.4658, 16.3599, 50.4242)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172BD #BD7C31
analogous
#31B8BD #3172BD #3631BD
triadic
#3172BD #BD3172 #72BD31
tetradic
#3172BD #BD31B8 #BD7C31 #31BD36
square
#3172BD #BD31B8 #BD7C31 #31BD36
split-complementary
#3172BD #BD3631 #B8BD31
monochromatic
#18375C #24558C #3172BD #5891D4 #88B1E0

Accessibility & contrast

On white

4.92
#3172BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#3172BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172BD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172BD#FFFFFF#000000##FFFFFF
##3172BD1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F78C0
Deuteranopia (green-blind)
#386BBC
Tritanopia (blue-blind)
#00848E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3172bd;
/* rgb */ color: rgb(49, 114, 189);
/* oklch */ color: oklch(54.8% 0.135 254.1);
Tailwind
colors: {
  custom: {
    50: '#7c9ad1',
    500: '#3172bd',
    950: '#000000',
  },
}
SCSS
$custom: #3172bd;
$custom-light: #7c9ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#3172bd",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 189
  },
  "hsl": {
    "h": 212.143,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54794,
    "c": 0.13455,
    "h": 254.1
  },
  "luminance": 0.16362
}

Semantic roles & 50–950 ramp

primary
#3172BD
secondary
#CAA880
accent
#9946E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #3172BD

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

Preview Lab → · Contrast checker → · Palette generator →

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