#3172B1#3172B1

#3172B1 is a mid, moderate cyan. Relative luminance 0.159; OKLCH L 54.1% C 0.119 H 250.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#3172B1
RGBrgb(49, 114, 177)
HSLhsl(210, 57%, 44%)
HSVhsv(210, 72%, 69%)
CMYKcmyk(72.3%, 35.6%, 0%, 30.6%)
CIE-LABlab(46.79, 0.85, -39.43)
CIE-LCHlch(46.79, 39.44, 271.23°)
OKLaboklab(54.07% -0.0399 -0.1121)
OKLCHoklch(54.07% 0.119 250.4)
XYZxyz(15.2168, 15.8602, 43.8458)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172B1 #B17031
analogous
#31B1B0 #3172B1 #3132B1
triadic
#3172B1 #B13172 #72B131
tetradic
#3172B1 #B031B1 #B17031 #32B131
square
#3172B1 #B031B1 #B17031 #32B131
split-complementary
#3172B1 #B13132 #B1B031
monochromatic
#163451 #245381 #3172B1 #5191CF #80AFDC

Accessibility & contrast

On white

5.03
#3172B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#3172B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172B1
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172B1#FFFFFF#000000##FFFFFF
##3172B11.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5575B4
Deuteranopia (green-blind)
#4369B0
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3172b1;
/* rgb */ color: rgb(49, 114, 177);
/* oklch */ color: oklch(54.1% 0.119 250.4);
Tailwind
colors: {
  custom: {
    50: '#799ac8',
    500: '#3172b1',
    950: '#000000',
  },
}
SCSS
$custom: #3172b1;
$custom-light: #799ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#3172b1",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 177
  },
  "hsl": {
    "h": 209.531,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54071,
    "c": 0.11896,
    "h": 250.4
  },
  "luminance": 0.15862
}

Semantic roles & 50–950 ramp

primary
#3172B1
secondary
#C59E79
accent
#9348E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #3172B1

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

Preview Lab → · Contrast checker → · Palette generator →

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