#3170A4#3170A4

#3170A4 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.9% C 0.104 H 246.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#3170A4
RGBrgb(49, 112, 164)
HSLhsl(207, 54%, 42%)
HSVhsv(207, 70%, 64%)
CMYKcmyk(70.1%, 31.7%, 0%, 35.7%)
CIE-LABlab(45.52, -2.66, -33.83)
CIE-LCHlch(45.52, 33.93, 265.51°)
OKLaboklab(52.86% -0.0417 -0.0957)
OKLCHoklch(52.86% 0.104 246.5)
XYZxyz(13.7591, 14.9202, 37.2695)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3170A4 #A46531
analogous
#31A49F #3170A4 #3137A4
triadic
#3170A4 #A43170 #70A431
tetradic
#3170A4 #9F31A4 #A46531 #37A431
square
#3170A4 #9F31A4 #A46531 #37A431
split-complementary
#3170A4 #A43137 #A49F31
monochromatic
#153046 #235075 #3170A4 #498FC9 #79ACD7

Accessibility & contrast

On white

5.27
#3170A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#3170A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3170A4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3170A4#FFFFFF#000000##FFFFFF
##3170A41.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5972A6
Deuteranopia (green-blind)
#4967A3
Tritanopia (blue-blind)
#007C82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3170a4;
/* rgb */ color: rgb(49, 112, 164);
/* oklch */ color: oklch(52.9% 0.104 246.5);
Tailwind
colors: {
  custom: {
    50: '#7798bf',
    500: '#3170a4',
    950: '#000000',
  },
}
SCSS
$custom: #3170a4;
$custom-light: #7798bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3170a4",
  "rgb": {
    "r": 49,
    "g": 112,
    "b": 164
  },
  "hsl": {
    "h": 207.13,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52858,
    "c": 0.10441,
    "h": 246.5
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#3170A4
secondary
#BF9572
accent
#8D4ADD
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #3170A4

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

Preview Lab → · Contrast checker → · Palette generator →

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