#2C71B7#2C71B7

#2C71B7 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.0% C 0.129 H 251.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2C71B7
RGBrgb(44, 113, 183)
HSLhsl(210, 61%, 45%)
HSVhsv(210, 76%, 72%)
CMYKcmyk(76%, 38.3%, 0%, 28.2%)
CIE-LABlab(46.66, 3.01, -43.13)
CIE-LCHlch(46.66, 43.24, 273.99°)
OKLaboklab(54.03% -0.0405 -0.123)
OKLCHoklch(54.03% 0.129 251.8)
XYZxyz(15.4879, 15.7628, 47.0168)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71B7 #B7722C
analogous
#2CB6B7 #2C71B7 #2D2CB7
triadic
#2C71B7 #B72C71 #71B72C
tetradic
#2C71B7 #B72CB6 #B7722C #2CB72D
square
#2C71B7 #B72CB6 #B7722C #2CB72D
split-complementary
#2C71B7 #B72D2C #B6B72C
monochromatic
#143454 #205386 #2C71B7 #4C90D4 #7EAEE0

Accessibility & contrast

On white

5.06
#2C71B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2C71B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71B7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71B7#FFFFFF#000000##FFFFFF
##2C71B71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5076BA
Deuteranopia (green-blind)
#3B69B6
Tritanopia (blue-blind)
#00828B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2c71b7;
/* rgb */ color: rgb(44, 113, 183);
/* oklch */ color: oklch(54.0% 0.129 251.8);
Tailwind
colors: {
  custom: {
    50: '#7999cd',
    500: '#2c71b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c71b7;
$custom-light: #7999cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71b7",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 210.216,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54031,
    "c": 0.12946,
    "h": 251.8
  },
  "luminance": 0.15765
}

Semantic roles & 50–950 ramp

primary
#2C71B7
secondary
#C8A076
accent
#9443E4
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2C71B7

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

Preview Lab → · Contrast checker → · Palette generator →

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