#3171BB#3171BB

#3171BB is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.4% C 0.133 H 254.1°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#3171BB
RGBrgb(49, 113, 187)
HSLhsl(212, 58%, 46%)
HSVhsv(212, 74%, 73%)
CMYKcmyk(73.8%, 39.6%, 0%, 26.7%)
CIE-LABlab(47.04, 5.15, -44.84)
CIE-LCHlch(47.04, 45.13, 276.55°)
OKLaboklab(54.44% -0.0364 -0.1279)
OKLCHoklch(54.44% 0.133 254.1)
XYZxyz(16.1381, 16.0493, 49.2514)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171BB #BB7B31
analogous
#31B6BB #3171BB #3631BB
triadic
#3171BB #BB3171 #71BB31
tetradic
#3171BB #BB31B6 #BB7B31 #31BB36
square
#3171BB #BB31B6 #BB7B31 #31BB36
split-complementary
#3171BB #BB3631 #B6BB31
monochromatic
#18365A #24548B #3171BB #5690D3 #87B0E0

Accessibility & contrast

On white

4.99
#3171BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#3171BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171BB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171BB#FFFFFF#000000##FFFFFF
##3171BB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BE
Deuteranopia (green-blind)
#386ABA
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3171bb;
/* rgb */ color: rgb(49, 113, 187);
/* oklch */ color: oklch(54.4% 0.133 254.1);
Tailwind
colors: {
  custom: {
    50: '#7b99d0',
    500: '#3171bb',
    950: '#000000',
  },
}
SCSS
$custom: #3171bb;
$custom-light: #7b99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3171bb",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 212.174,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54442,
    "c": 0.13301,
    "h": 254.1
  },
  "luminance": 0.16051
}

Semantic roles & 50–950 ramp

primary
#3171BB
secondary
#C9A77F
accent
#9A46E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #3171BB

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

Preview Lab → · Contrast checker → · Palette generator →

#3171BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva