#2C71C0#2C71C0

#2C71C0 is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.6% C 0.141 H 254.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2C71C0
RGBrgb(44, 113, 192)
HSLhsl(212, 63%, 46%)
HSVhsv(212, 77%, 75%)
CMYKcmyk(77.1%, 41.1%, 0%, 24.7%)
CIE-LABlab(47.17, 6.38, -47.53)
CIE-LCHlch(47.17, 47.95, 277.65°)
OKLaboklab(54.59% -0.0383 -0.1359)
OKLCHoklch(54.59% 0.141 254.2)
XYZxyz(16.4547, 16.1496, 52.1089)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71C0 #C07B2C
analogous
#2CBBC0 #2C71C0 #312CC0
triadic
#2C71C0 #C02C71 #71C02C
tetradic
#2C71C0 #C02CBB #C07B2C #2CC031
square
#2C71C0 #C02CBB #C07B2C #2CC031
split-complementary
#2C71C0 #C0312C #BBC02C
monochromatic
#15365C #21548E #2C71C0 #5290D7 #84B0E3

Accessibility & contrast

On white

4.96
#2C71C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2C71C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71C0
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71C0#FFFFFF#000000##FFFFFF
##2C71C01.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B77C3
Deuteranopia (green-blind)
#316ABE
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2c71c0;
/* rgb */ color: rgb(44, 113, 192);
/* oklch */ color: oklch(54.6% 0.141 254.2);
Tailwind
colors: {
  custom: {
    50: '#7a99d3',
    500: '#2c71c0',
    950: '#000000',
  },
}
SCSS
$custom: #2c71c0;
$custom-light: #7a99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71c0",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 192
  },
  "hsl": {
    "h": 212.027,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54593,
    "c": 0.14117,
    "h": 254.2
  },
  "luminance": 0.16151
}

Semantic roles & 50–950 ramp

primary
#2C71C0
secondary
#CCA77C
accent
#9942E6
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2C71C0

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

Preview Lab → · Contrast checker → · Palette generator →

#2C71C0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva