#3170BB#3170BB

#3170BB is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.2% C 0.134 H 254.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#3170BB
RGBrgb(49, 112, 187)
HSLhsl(213, 58%, 46%)
HSVhsv(213, 74%, 73%)
CMYKcmyk(73.8%, 40.1%, 0%, 26.7%)
CIE-LABlab(46.75, 5.77, -45.30)
CIE-LCHlch(46.75, 45.67, 277.26°)
OKLaboklab(54.22% -0.0355 -0.1293)
OKLCHoklch(54.22% 0.134 254.6)
XYZxyz(16.0271, 15.8274, 49.2144)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170BB #BB7C31
analogous
#31B5BB #3170BB #3731BB
triadic
#3170BB #BB3170 #70BB31
tetradic
#3170BB #BB31B5 #BB7C31 #31BB37
square
#3170BB #BB31B5 #BB7C31 #31BB37
split-complementary
#3170BB #BB3731 #B5BB31
monochromatic
#18365A #24538B #3170BB #568FD3 #87AFE0

Accessibility & contrast

On white

5.04
#3170BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#3170BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170BB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170BB#FFFFFF#000000##FFFFFF
##3170BB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D76BE
Deuteranopia (green-blind)
#3669B9
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #3170bb;
/* rgb */ color: rgb(49, 112, 187);
/* oklch */ color: oklch(54.2% 0.134 254.6);
Tailwind
colors: {
  custom: {
    50: '#7b98d0',
    500: '#3170bb',
    950: '#000000',
  },
}
SCSS
$custom: #3170bb;
$custom-light: #7b98d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3170bb",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 187
  },
  "hsl": {
    "h": 212.609,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54215,
    "c": 0.13409,
    "h": 254.6
  },
  "luminance": 0.15829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3170BB

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

Preview Lab → · Contrast checker → · Palette generator →

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