#3170B8#3170B8

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

Color values

HEX#3170B8
RGBrgb(49, 112, 184)
HSLhsl(212, 58%, 46%)
HSVhsv(212, 73%, 72%)
CMYKcmyk(73.4%, 39.1%, 0%, 27.8%)
CIE-LABlab(46.58, 4.66, -43.83)
CIE-LCHlch(46.58, 44.08, 276.07°)
OKLaboklab(54.03% -0.0362 -0.125)
OKLCHoklch(54.03% 0.13 253.8)
XYZxyz(15.7093, 15.7003, 47.5406)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170B8 #B87931
analogous
#31B3B8 #3170B8 #3531B8
triadic
#3170B8 #B83170 #70B831
tetradic
#3170B8 #B831B3 #B87931 #31B835
square
#3170B8 #B831B3 #B87931 #31B835
split-complementary
#3170B8 #B83531 #B3B831
monochromatic
#173557 #245388 #3170B8 #558FD2 #85AFDE

Accessibility & contrast

On white

5.07
#3170B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#3170B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170B8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170B8#FFFFFF#000000##FFFFFF
##3170B81.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)
#4E75BB
Deuteranopia (green-blind)
#3969B7
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3170b8;
/* rgb */ color: rgb(49, 112, 184);
/* oklch */ color: oklch(54.0% 0.130 253.8);
Tailwind
colors: {
  custom: {
    50: '#7b98ce',
    500: '#3170b8',
    950: '#000000',
  },
}
SCSS
$custom: #3170b8;
$custom-light: #7b98ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3170b8",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 184
  },
  "hsl": {
    "h": 212,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54029,
    "c": 0.13013,
    "h": 253.8
  },
  "luminance": 0.15702
}

Semantic roles & 50–950 ramp

primary
#3170B8
secondary
#C8A57D
accent
#9947E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D13
muted
#7C7E82

Preview Lab

Preview with #3170B8

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

Preview Lab → · Contrast checker → · Palette generator →

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