#3170B6#3170B6

#3170B6 is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 53.9% C 0.128 H 253.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#3170B6
RGBrgb(49, 112, 182)
HSLhsl(212, 58%, 45%)
HSVhsv(212, 73%, 71%)
CMYKcmyk(73.1%, 38.5%, 0%, 28.6%)
CIE-LABlab(46.47, 3.92, -42.85)
CIE-LCHlch(46.47, 43.03, 275.23°)
OKLaboklab(53.91% -0.0367 -0.1221)
OKLCHoklch(53.91% 0.128 253.3)
XYZxyz(15.5012, 15.6170, 46.4443)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170B6 #B67731
analogous
#31B2B6 #3170B6 #3431B6
triadic
#3170B6 #B63170 #70B631
tetradic
#3170B6 #B631B2 #B67731 #31B634
square
#3170B6 #B631B2 #B67731 #31B634
split-complementary
#3170B6 #B63431 #B2B631
monochromatic
#173556 #245286 #3170B6 #538FD1 #84AEDE

Accessibility & contrast

On white

5.09
#3170B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#3170B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170B6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170B6#FFFFFF#000000##FFFFFF
##3170B61.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5075B9
Deuteranopia (green-blind)
#3B68B5
Tritanopia (blue-blind)
#00808A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3170b6;
/* rgb */ color: rgb(49, 112, 182);
/* oklch */ color: oklch(53.9% 0.128 253.3);
Tailwind
colors: {
  custom: {
    50: '#7a98cc',
    500: '#3170b6',
    950: '#000000',
  },
}
SCSS
$custom: #3170b6;
$custom-light: #7a98cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3170b6",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 182
  },
  "hsl": {
    "h": 211.579,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53906,
    "c": 0.1275,
    "h": 253.3
  },
  "luminance": 0.15619
}

Semantic roles & 50–950 ramp

primary
#3170B6
secondary
#C7A37C
accent
#9847E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3170B6

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

Preview Lab → · Contrast checker → · Palette generator →

#3170B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva