#3171A3#3171A3

#3171A3 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.0% C 0.102 H 245.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#3171A3
RGBrgb(49, 113, 163)
HSLhsl(206, 54%, 42%)
HSVhsv(206, 70%, 64%)
CMYKcmyk(69.9%, 30.7%, 0%, 36.1%)
CIE-LABlab(45.78, -3.62, -32.84)
CIE-LCHlch(45.78, 33.04, 263.71°)
OKLaboklab(53.04% -0.043 -0.0928)
OKLCHoklch(53.04% 0.102 245.1)
XYZxyz(13.7801, 15.1061, 36.8328)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171A3 #A36331
analogous
#31A39C #3171A3 #3138A3
triadic
#3171A3 #A33171 #71A331
tetradic
#3171A3 #9C31A3 #A36331 #38A331
square
#3171A3 #9C31A3 #A36331 #38A331
split-complementary
#3171A3 #A33138 #A39C31
monochromatic
#153045 #235074 #3171A3 #4990C8 #78ADD6

Accessibility & contrast

On white

5.22
#3171A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#3171A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171A3
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171A3#FFFFFF#000000##FFFFFF
##3171A31.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A5
Deuteranopia (green-blind)
#4B67A2
Tritanopia (blue-blind)
#007D83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3171a3;
/* rgb */ color: rgb(49, 113, 163);
/* oklch */ color: oklch(53.0% 0.102 245.1);
Tailwind
colors: {
  custom: {
    50: '#7799be',
    500: '#3171a3',
    950: '#000000',
  },
}
SCSS
$custom: #3171a3;
$custom-light: #7799be;
$custom-dark: #000000;
JSON
{
  "hex": "#3171a3",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 163
  },
  "hsl": {
    "h": 206.316,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53042,
    "c": 0.10233,
    "h": 245.1
  },
  "luminance": 0.15108
}

Semantic roles & 50–950 ramp

primary
#3171A3
secondary
#BF9371
accent
#8B4BDD
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #3171A3

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

Preview Lab → · Contrast checker → · Palette generator →

#3171A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva