#2C71B9#2C71B9

#2C71B9 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.2% C 0.132 H 252.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2C71B9
RGBrgb(44, 113, 185)
HSLhsl(211, 62%, 45%)
HSVhsv(211, 76%, 73%)
CMYKcmyk(76.2%, 38.9%, 0%, 27.5%)
CIE-LABlab(46.77, 3.75, -44.11)
CIE-LCHlch(46.77, 44.27, 274.86°)
OKLaboklab(54.15% -0.04 -0.1258)
OKLCHoklch(54.15% 0.132 252.4)
XYZxyz(15.6975, 15.8467, 48.1209)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71B9 #B9742C
analogous
#2CB8B9 #2C71B9 #2D2CB9
triadic
#2C71B9 #B92C71 #71B92C
tetradic
#2C71B9 #B92CB8 #B9742C #2CB92D
square
#2C71B9 #B92CB8 #B9742C #2CB92D
split-complementary
#2C71B9 #B92D2C #B8B92C
monochromatic
#143556 #205388 #2C71B9 #4D90D5 #7FAFE1

Accessibility & contrast

On white

5.04
#2C71B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2C71B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71B9
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71B9#FFFFFF#000000##FFFFFF
##2C71B91.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F76BC
Deuteranopia (green-blind)
#3969B8
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2c71b9;
/* rgb */ color: rgb(44, 113, 185);
/* oklch */ color: oklch(54.2% 0.132 252.4);
Tailwind
colors: {
  custom: {
    50: '#7999ce',
    500: '#2c71b9',
    950: '#000000',
  },
}
SCSS
$custom: #2c71b9;
$custom-light: #7999ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71b9",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 185
  },
  "hsl": {
    "h": 210.638,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54154,
    "c": 0.13205,
    "h": 252.4
  },
  "luminance": 0.15849
}

Semantic roles & 50–950 ramp

primary
#2C71B9
secondary
#C9A178
accent
#9643E5
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2C71B9

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

Preview Lab → · Contrast checker → · Palette generator →

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