#3171A2#3171A2

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

Color values

HEX#3171A2
RGBrgb(49, 113, 162)
HSLhsl(206, 54%, 41%)
HSVhsv(206, 70%, 64%)
CMYKcmyk(69.8%, 30.2%, 0%, 36.5%)
CIE-LABlab(45.73, -3.98, -32.33)
CIE-LCHlch(45.73, 32.57, 262.98°)
OKLaboklab(52.99% -0.0433 -0.0914)
OKLCHoklch(52.99% 0.101 244.6)
XYZxyz(13.6909, 15.0704, 36.3628)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171A2 #A26231
analogous
#31A29B #3171A2 #3138A2
triadic
#3171A2 #A23171 #71A231
tetradic
#3171A2 #9B31A2 #A26231 #38A231
square
#3171A2 #9B31A2 #A26231 #38A231
split-complementary
#3171A2 #A23138 #A29B31
monochromatic
#152F44 #235073 #3171A2 #4891C8 #77ADD6

Accessibility & contrast

On white

5.23
#3171A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#3171A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171A2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171A2#FFFFFF#000000##FFFFFF
##3171A21.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A4
Deuteranopia (green-blind)
#4B67A1
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3171a2;
/* rgb */ color: rgb(49, 113, 162);
/* oklch */ color: oklch(53.0% 0.101 244.6);
Tailwind
colors: {
  custom: {
    50: '#7799bd',
    500: '#3171a2',
    950: '#000000',
  },
}
SCSS
$custom: #3171a2;
$custom-light: #7799bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3171a2",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 206.018,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52988,
    "c": 0.10112,
    "h": 244.6
  },
  "luminance": 0.15072
}

Semantic roles & 50–950 ramp

primary
#3171A2
secondary
#BE9271
accent
#8A4BDD
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #3171A2

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

Preview Lab → · Contrast checker → · Palette generator →

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