#2C71C4#2C71C4

#2C71C4 is a mid, vivid cyan. Relative luminance 0.163; OKLCH L 54.9% C 0.146 H 255.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#2C71C4
RGBrgb(44, 113, 196)
HSLhsl(213, 63%, 47%)
HSVhsv(213, 78%, 77%)
CMYKcmyk(77.6%, 42.3%, 0%, 23.1%)
CIE-LABlab(47.40, 7.89, -49.46)
CIE-LCHlch(47.40, 50.08, 279.06°)
OKLaboklab(54.85% -0.0375 -0.1415)
OKLCHoklch(54.85% 0.146 255.2)
XYZxyz(16.9039, 16.3293, 54.4748)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71C4 #C47F2C
analogous
#2CBDC4 #2C71C4 #332CC4
triadic
#2C71C4 #C42C71 #71C42C
tetradic
#2C71C4 #C42CBD #C47F2C #2CC433
square
#2C71C4 #C42CBD #C47F2C #2CC433
split-complementary
#2C71C4 #C4332C #BDC42C
monochromatic
#163760 #215492 #2C71C4 #5491D9 #86B1E4

Accessibility & contrast

On white

4.92
#2C71C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#2C71C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71C4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71C4#FFFFFF#000000##FFFFFF
##2C71C41.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4878C7
Deuteranopia (green-blind)
#2C6AC2
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2c71c4;
/* rgb */ color: rgb(44, 113, 196);
/* oklch */ color: oklch(54.9% 0.146 255.2);
Tailwind
colors: {
  custom: {
    50: '#7b99d6',
    500: '#2c71c4',
    950: '#000000',
  },
}
SCSS
$custom: #2c71c4;
$custom-light: #7b99d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71c4",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 196
  },
  "hsl": {
    "h": 212.763,
    "s": 63.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5485,
    "c": 0.14641,
    "h": 255.2
  },
  "luminance": 0.16331
}

Semantic roles & 50–950 ramp

primary
#2C71C4
secondary
#CDAA7E
accent
#9B41E6
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2C71C4

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

Preview Lab → · Contrast checker → · Palette generator →

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