#3171B3#3171B3

#3171B3 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 54.0% C 0.123 H 251.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#3171B3
RGBrgb(49, 113, 179)
HSLhsl(210, 57%, 45%)
HSVhsv(210, 73%, 70%)
CMYKcmyk(72.6%, 36.9%, 0%, 29.8%)
CIE-LABlab(46.60, 2.20, -40.90)
CIE-LCHlch(46.60, 40.96, 273.07°)
OKLaboklab(53.96% -0.0384 -0.1164)
OKLCHoklch(53.96% 0.123 251.7)
XYZxyz(15.3054, 15.7162, 44.8660)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171B3 #B37331
analogous
#31B2B3 #3171B3 #3231B3
triadic
#3171B3 #B33171 #71B331
tetradic
#3171B3 #B331B2 #B37331 #31B332
square
#3171B3 #B331B2 #B37331 #31B332
split-complementary
#3171B3 #B33231 #B2B331
monochromatic
#173453 #245383 #3171B3 #5290D0 #82AEDD

Accessibility & contrast

On white

5.07
#3171B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#3171B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171B3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171B3#FFFFFF#000000##FFFFFF
##3171B31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B6
Deuteranopia (green-blind)
#4069B2
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3171b3;
/* rgb */ color: rgb(49, 113, 179);
/* oklch */ color: oklch(54.0% 0.123 251.7);
Tailwind
colors: {
  custom: {
    50: '#7a99ca',
    500: '#3171b3',
    950: '#000000',
  },
}
SCSS
$custom: #3171b3;
$custom-light: #7a99ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3171b3",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 179
  },
  "hsl": {
    "h": 210.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53956,
    "c": 0.12254,
    "h": 251.7
  },
  "luminance": 0.15718
}

Semantic roles & 50–950 ramp

primary
#3171B3
secondary
#C6A07A
accent
#9548E0
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3171B3

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

Preview Lab → · Contrast checker → · Palette generator →

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