#3172B4#3172B4

#3172B4 is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.2% C 0.123 H 251.4°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#3172B4
RGBrgb(49, 114, 180)
HSLhsl(210, 57%, 45%)
HSVhsv(210, 73%, 71%)
CMYKcmyk(72.8%, 36.7%, 0%, 29.4%)
CIE-LABlab(46.95, 1.95, -40.92)
CIE-LCHlch(46.95, 40.97, 272.72°)
OKLaboklab(54.25% -0.0391 -0.1164)
OKLCHoklch(54.25% 0.123 251.4)
XYZxyz(15.5191, 15.9812, 45.4379)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172B4 #B47331
analogous
#31B3B4 #3172B4 #3231B4
triadic
#3172B4 #B43172 #72B431
tetradic
#3172B4 #B431B3 #B47331 #31B432
square
#3172B4 #B431B3 #B47331 #31B432
split-complementary
#3172B4 #B43231 #B3B431
monochromatic
#173554 #245484 #3172B4 #5291D0 #82AFDD

Accessibility & contrast

On white

5.00
#3172B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#3172B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172B4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172B4#FFFFFF#000000##FFFFFF
##3172B41.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5476B7
Deuteranopia (green-blind)
#406AB3
Tritanopia (blue-blind)
#00828A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3172b4;
/* rgb */ color: rgb(49, 114, 180);
/* oklch */ color: oklch(54.2% 0.123 251.4);
Tailwind
colors: {
  custom: {
    50: '#7a9acb',
    500: '#3172b4',
    950: '#000000',
  },
}
SCSS
$custom: #3172b4;
$custom-light: #7a9acb;
$custom-dark: #000000;
JSON
{
  "hex": "#3172b4",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 180
  },
  "hsl": {
    "h": 210.229,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.12283,
    "h": 251.4
  },
  "luminance": 0.15983
}

Semantic roles & 50–950 ramp

primary
#3172B4
secondary
#C6A17B
accent
#9447E0
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #3172B4

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

Preview Lab → · Contrast checker → · Palette generator →

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