#3170B4#3170B4

#3170B4 is a mid, vivid cyan. Relative luminance 0.155; OKLCH L 53.8% C 0.125 H 252.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#3170B4
RGBrgb(49, 112, 180)
HSLhsl(211, 57%, 45%)
HSVhsv(211, 73%, 71%)
CMYKcmyk(72.8%, 37.8%, 0%, 29.4%)
CIE-LABlab(46.36, 3.18, -41.86)
CIE-LCHlch(46.36, 41.98, 274.35°)
OKLaboklab(53.79% -0.0372 -0.1192)
OKLCHoklch(53.79% 0.125 252.7)
XYZxyz(15.2959, 15.5349, 45.3636)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170B4 #B47531
analogous
#31B1B4 #3170B4 #3431B4
triadic
#3170B4 #B43170 #70B431
tetradic
#3170B4 #B431B1 #B47531 #31B434
square
#3170B4 #B431B1 #B47531 #31B434
split-complementary
#3170B4 #B43431 #B1B431
monochromatic
#173454 #245284 #3170B4 #528FD0 #82AEDD

Accessibility & contrast

On white

5.11
#3170B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#3170B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170B4
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170B4#FFFFFF#000000##FFFFFF
##3170B41.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5174B7
Deuteranopia (green-blind)
#3D68B3
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3170b4;
/* rgb */ color: rgb(49, 112, 180);
/* oklch */ color: oklch(53.8% 0.125 252.7);
Tailwind
colors: {
  custom: {
    50: '#7a98cb',
    500: '#3170b4',
    950: '#000000',
  },
}
SCSS
$custom: #3170b4;
$custom-light: #7a98cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3170b4",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 180
  },
  "hsl": {
    "h": 211.145,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.53785,
    "c": 0.12488,
    "h": 252.7
  },
  "luminance": 0.15537
}

Semantic roles & 50–950 ramp

primary
#3170B4
secondary
#C6A27B
accent
#9747E0
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3170B4

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

Preview Lab → · Contrast checker → · Palette generator →

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