#2C71C5#2C71C5

#2C71C5 is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 54.9% C 0.148 H 255.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2C71C5
RGBrgb(44, 113, 197)
HSLhsl(213, 63%, 47%)
HSVhsv(213, 78%, 77%)
CMYKcmyk(77.7%, 42.6%, 0%, 22.7%)
CIE-LABlab(47.46, 8.27, -49.94)
CIE-LCHlch(47.46, 50.62, 279.40°)
OKLaboklab(54.92% -0.0372 -0.1429)
OKLCHoklch(54.92% 0.148 255.4)
XYZxyz(17.0181, 16.3749, 55.0763)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71C5 #C5802C
analogous
#2CBEC5 #2C71C5 #342CC5
triadic
#2C71C5 #C52C71 #71C52C
tetradic
#2C71C5 #C52CBE #C5802C #2CC534
square
#2C71C5 #C52CBE #C5802C #2CC534
split-complementary
#2C71C5 #C5342C #BEC52C
monochromatic
#163861 #215493 #2C71C5 #5591D9 #87B1E4

Accessibility & contrast

On white

4.91
#2C71C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#2C71C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71C5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71C5#FFFFFF#000000##FFFFFF
##2C71C51.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4778C8
Deuteranopia (green-blind)
#2B6AC3
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2c71c5;
/* rgb */ color: rgb(44, 113, 197);
/* oklch */ color: oklch(54.9% 0.148 255.4);
Tailwind
colors: {
  custom: {
    50: '#7b99d7',
    500: '#2c71c5',
    950: '#000000',
  },
}
SCSS
$custom: #2c71c5;
$custom-light: #7b99d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71c5",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 197
  },
  "hsl": {
    "h": 212.941,
    "s": 63.485,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54915,
    "c": 0.14772,
    "h": 255.4
  },
  "luminance": 0.16377
}

Semantic roles & 50–950 ramp

primary
#2C71C5
secondary
#CEAA7F
accent
#9C41E7
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2C71C5

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

Preview Lab → · Contrast checker → · Palette generator →

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