#2C71B5#2C71B5

#2C71B5 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.127 H 251.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2C71B5
RGBrgb(44, 113, 181)
HSLhsl(210, 61%, 44%)
HSVhsv(210, 76%, 71%)
CMYKcmyk(75.7%, 37.6%, 0%, 29%)
CIE-LABlab(46.55, 2.26, -42.14)
CIE-LCHlch(46.55, 42.20, 273.07°)
OKLaboklab(53.91% -0.041 -0.1201)
OKLCHoklch(53.91% 0.127 251.2)
XYZxyz(15.2812, 15.6802, 45.9283)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71B5 #B5702C
analogous
#2CB5B5 #2C71B5 #2C2DB5
triadic
#2C71B5 #B52C71 #71B52C
tetradic
#2C71B5 #B52CB5 #B5702C #2DB52C
square
#2C71B5 #B52CB5 #B5702C #2DB52C
split-complementary
#2C71B5 #B52C2D #B5B52C
monochromatic
#143453 #205284 #2C71B5 #4B90D3 #7CAEDF

Accessibility & contrast

On white

5.08
#2C71B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2C71B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71B5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71B5#FFFFFF#000000##FFFFFF
##2C71B51.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5175B8
Deuteranopia (green-blind)
#3D69B4
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2c71b5;
/* rgb */ color: rgb(44, 113, 181);
/* oklch */ color: oklch(53.9% 0.127 251.2);
Tailwind
colors: {
  custom: {
    50: '#7899cb',
    500: '#2c71b5',
    950: '#000000',
  },
}
SCSS
$custom: #2c71b5;
$custom-light: #7899cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71b5",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 181
  },
  "hsl": {
    "h": 209.781,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5391,
    "c": 0.12688,
    "h": 251.2
  },
  "luminance": 0.15682
}

Semantic roles & 50–950 ramp

primary
#2C71B5
secondary
#C89E75
accent
#9344E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2C71B5

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

Preview Lab → · Contrast checker → · Palette generator →

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