#3172B8#3172B8

#3172B8 is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.128 H 252.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#3172B8
RGBrgb(49, 114, 184)
HSLhsl(211, 58%, 46%)
HSVhsv(211, 73%, 72%)
CMYKcmyk(73.4%, 38%, 0%, 27.8%)
CIE-LABlab(47.17, 3.42, -42.90)
CIE-LCHlch(47.17, 43.04, 274.56°)
OKLaboklab(54.49% -0.0381 -0.1222)
OKLCHoklch(54.49% 0.128 252.7)
XYZxyz(15.9324, 16.1465, 47.6150)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172B8 #B87731
analogous
#31B5B8 #3172B8 #3331B8
triadic
#3172B8 #B83172 #72B831
tetradic
#3172B8 #B831B5 #B87731 #31B833
square
#3172B8 #B831B5 #B87731 #31B833
split-complementary
#3172B8 #B83331 #B5B831
monochromatic
#173657 #245488 #3172B8 #5591D2 #85B0DE

Accessibility & contrast

On white

4.97
#3172B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#3172B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172B8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172B8#FFFFFF#000000##FFFFFF
##3172B81.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5277BB
Deuteranopia (green-blind)
#3D6AB7
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3172b8;
/* rgb */ color: rgb(49, 114, 184);
/* oklch */ color: oklch(54.5% 0.128 252.7);
Tailwind
colors: {
  custom: {
    50: '#7b9ace',
    500: '#3172b8',
    950: '#000000',
  },
}
SCSS
$custom: #3172b8;
$custom-light: #7b9ace;
$custom-dark: #000000;
JSON
{
  "hex": "#3172b8",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 184
  },
  "hsl": {
    "h": 211.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54487,
    "c": 0.12802,
    "h": 252.7
  },
  "luminance": 0.16148
}

Semantic roles & 50–950 ramp

primary
#3172B8
secondary
#C8A47D
accent
#9747E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0E13
muted
#7C7E82

Preview Lab

Preview with #3172B8

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

Preview Lab → · Contrast checker → · Palette generator →

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