#3171BF#3171BF

#3171BF is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.7% C 0.138 H 255.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#3171BF
RGBrgb(49, 113, 191)
HSLhsl(213, 59%, 47%)
HSVhsv(213, 74%, 75%)
CMYKcmyk(74.3%, 40.8%, 0%, 25.1%)
CIE-LABlab(47.27, 6.63, -46.79)
CIE-LCHlch(47.27, 47.26, 278.07°)
OKLaboklab(54.69% -0.0355 -0.1336)
OKLCHoklch(54.69% 0.138 255.1)
XYZxyz(16.5722, 16.2229, 51.5380)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171BF #BF7F31
analogous
#31B8BF #3171BF #3831BF
triadic
#3171BF #BF3171 #71BF31
tetradic
#3171BF #BF31B8 #BF7F31 #31BF38
square
#3171BF #BF31B8 #BF7F31 #31BF38
split-complementary
#3171BF #BF3831 #B8BF31
monochromatic
#18375E #25548E #3171BF #5991D4 #8AB1E1

Accessibility & contrast

On white

4.95
#3171BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#3171BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171BF
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171BF#FFFFFF#000000##FFFFFF
##3171BF1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C77C2
Deuteranopia (green-blind)
#346ABD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #3171bf;
/* rgb */ color: rgb(49, 113, 191);
/* oklch */ color: oklch(54.7% 0.138 255.1);
Tailwind
colors: {
  custom: {
    50: '#7c99d3',
    500: '#3171bf',
    950: '#000000',
  },
}
SCSS
$custom: #3171bf;
$custom-light: #7c99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3171bf",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 212.958,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54692,
    "c": 0.13828,
    "h": 255.1
  },
  "luminance": 0.16225
}

Semantic roles & 50–950 ramp

primary
#3171BF
secondary
#CBAA81
accent
#9C45E2
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #3171BF

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

Preview Lab → · Contrast checker → · Palette generator →

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