#3172B3#3172B3

#3172B3 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.122 H 251.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#3172B3
RGBrgb(49, 114, 179)
HSLhsl(210, 57%, 45%)
HSVhsv(210, 73%, 70%)
CMYKcmyk(72.6%, 36.3%, 0%, 29.8%)
CIE-LABlab(46.90, 1.58, -40.43)
CIE-LCHlch(46.90, 40.46, 272.24°)
OKLaboklab(54.19% -0.0394 -0.115)
OKLCHoklch(54.19% 0.122 251.1)
XYZxyz(15.4176, 15.9406, 44.9034)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172B3 #B37231
analogous
#31B3B3 #3172B3 #3131B3
triadic
#3172B3 #B33172 #72B331
tetradic
#3172B3 #B331B3 #B37231 #31B331
square
#3172B3 #B331B3 #B37231 #31B331
split-complementary
#3172B3 #B33131 #B3B331
monochromatic
#173553 #245383 #3172B3 #5291D0 #82AFDD

Accessibility & contrast

On white

5.01
#3172B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#3172B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172B3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172B3#FFFFFF#000000##FFFFFF
##3172B31.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5476B6
Deuteranopia (green-blind)
#416AB2
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3172b3;
/* rgb */ color: rgb(49, 114, 179);
/* oklch */ color: oklch(54.2% 0.122 251.1);
Tailwind
colors: {
  custom: {
    50: '#7a9aca',
    500: '#3172b3',
    950: '#000000',
  },
}
SCSS
$custom: #3172b3;
$custom-light: #7a9aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3172b3",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 179
  },
  "hsl": {
    "h": 210,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54188,
    "c": 0.12153,
    "h": 251.1
  },
  "luminance": 0.15942
}

Semantic roles & 50–950 ramp

primary
#3172B3
secondary
#C6A07A
accent
#9448E0
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #3172B3

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

Preview Lab → · Contrast checker → · Palette generator →

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