#3171CA#3171CA

#3171CA is a mid, vivid cyan. Relative luminance 0.167; OKLCH L 55.4% C 0.153 H 257.4°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#3171CA
RGBrgb(49, 113, 202)
HSLhsl(215, 61%, 49%)
HSVhsv(215, 76%, 79%)
CMYKcmyk(75.7%, 44.1%, 0%, 20.8%)
CIE-LABlab(47.91, 10.73, -52.08)
CIE-LCHlch(47.91, 53.17, 281.65°)
OKLaboklab(55.4% -0.0332 -0.1492)
OKLCHoklch(55.4% 0.153 257.4)
XYZxyz(17.8285, 16.7254, 58.1544)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3171CA #CA8A31
analogous
#31BECA #3171CA #3E31CA
triadic
#3171CA #CA3171 #71CA31
tetradic
#3171CA #CA31BE #CA8A31 #31CA3E
square
#3171CA #CA31BE #CA8A31 #31CA3E
split-complementary
#3171CA #CA3E31 #BECA31
monochromatic
#193A67 #255599 #3171CA #6092D8 #91B4E4

Accessibility & contrast

On white

4.83
#3171CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#3171CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3171CA
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3171CA#FFFFFF#000000##FFFFFF
##3171CA1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4479CD
Deuteranopia (green-blind)
#256BC8
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3171ca;
/* rgb */ color: rgb(49, 113, 202);
/* oklch */ color: oklch(55.4% 0.153 257.4);
Tailwind
colors: {
  custom: {
    50: '#7e99db',
    500: '#3171ca',
    950: '#000000',
  },
}
SCSS
$custom: #3171ca;
$custom-light: #7e99db;
$custom-dark: #000000;
JSON
{
  "hex": "#3171ca",
  "rgb": {
    "r": 49,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 214.902,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55403,
    "c": 0.15284,
    "h": 257.4
  },
  "luminance": 0.16727
}

Semantic roles & 50–950 ramp

primary
#3171CA
secondary
#CFB188
accent
#A144E4
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #3171CA

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

Preview Lab → · Contrast checker → · Palette generator →

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