#3170B7#3170B7

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

Color values

HEX#3170B7
RGBrgb(49, 112, 183)
HSLhsl(212, 58%, 45%)
HSVhsv(212, 73%, 72%)
CMYKcmyk(73.2%, 38.8%, 0%, 28.2%)
CIE-LABlab(46.52, 4.29, -43.34)
CIE-LCHlch(46.52, 43.55, 275.65°)
OKLaboklab(53.97% -0.0365 -0.1235)
OKLCHoklch(53.97% 0.129 253.6)
XYZxyz(15.6049, 15.6585, 46.9905)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170B7 #B77831
analogous
#31B3B7 #3170B7 #3531B7
triadic
#3170B7 #B73170 #70B731
tetradic
#3170B7 #B731B3 #B77831 #31B735
square
#3170B7 #B731B3 #B77831 #31B735
split-complementary
#3170B7 #B73531 #B3B731
monochromatic
#173556 #245287 #3170B7 #548FD1 #84AFDE

Accessibility & contrast

On white

5.08
#3170B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#3170B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170B7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170B7#FFFFFF#000000##FFFFFF
##3170B71.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F75BA
Deuteranopia (green-blind)
#3A69B6
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3170b7;
/* rgb */ color: rgb(49, 112, 183);
/* oklch */ color: oklch(54.0% 0.129 253.6);
Tailwind
colors: {
  custom: {
    50: '#7a98cd',
    500: '#3170b7',
    950: '#000000',
  },
}
SCSS
$custom: #3170b7;
$custom-light: #7a98cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3170b7",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 183
  },
  "hsl": {
    "h": 211.791,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53967,
    "c": 0.12881,
    "h": 253.6
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#3170B7
secondary
#C8A47C
accent
#9947E1
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #3170B7

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

Preview Lab → · Contrast checker → · Palette generator →

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