#3172BF#3172BF

#3172BF is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 54.9% C 0.137 H 254.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#3172BF
RGBrgb(49, 114, 191)
HSLhsl(213, 59%, 47%)
HSVhsv(213, 74%, 75%)
CMYKcmyk(74.3%, 40.3%, 0%, 25.1%)
CIE-LABlab(47.56, 6.01, -46.32)
CIE-LCHlch(47.56, 46.71, 277.39°)
OKLaboklab(54.92% -0.0364 -0.1323)
OKLCHoklch(54.92% 0.137 254.6)
XYZxyz(16.6844, 16.4473, 51.5754)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3172BF #BF7E31
analogous
#31B9BF #3172BF #3731BF
triadic
#3172BF #BF3172 #72BF31
tetradic
#3172BF #BF31B9 #BF7E31 #31BF37
square
#3172BF #BF31B9 #BF7E31 #31BF37
split-complementary
#3172BF #BF3731 #B9BF31
monochromatic
#18385E #25558E #3172BF #5991D4 #8AB2E1

Accessibility & contrast

On white

4.90
#3172BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#3172BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3172BF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3172BF#FFFFFF#000000##FFFFFF
##3172BF1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D78C2
Deuteranopia (green-blind)
#366BBD
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #3172bf;
/* rgb */ color: rgb(49, 114, 191);
/* oklch */ color: oklch(54.9% 0.137 254.6);
Tailwind
colors: {
  custom: {
    50: '#7c9ad3',
    500: '#3172bf',
    950: '#000000',
  },
}
SCSS
$custom: #3172bf;
$custom-light: #7c9ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#3172bf",
  "rgb": {
    "r": 49,
    "g": 114,
    "b": 191
  },
  "hsl": {
    "h": 212.535,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54918,
    "c": 0.13718,
    "h": 254.6
  },
  "luminance": 0.16449
}

Semantic roles & 50–950 ramp

primary
#3172BF
secondary
#CBA981
accent
#9B45E2
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3172BF

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

Preview Lab → · Contrast checker → · Palette generator →

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