#2C71BF#2C71BF

#2C71BF is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.140 H 254.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2C71BF
RGBrgb(44, 113, 191)
HSLhsl(212, 63%, 46%)
HSVhsv(212, 77%, 75%)
CMYKcmyk(77%, 40.8%, 0%, 25.1%)
CIE-LABlab(47.11, 6.01, -47.04)
CIE-LCHlch(47.11, 47.42, 277.28°)
OKLaboklab(54.53% -0.0386 -0.1344)
OKLCHoklch(54.53% 0.14 254)
XYZxyz(16.3443, 16.1054, 51.5274)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71BF #BF7A2C
analogous
#2CBABF #2C71BF #312CBF
triadic
#2C71BF #BF2C71 #71BF2C
tetradic
#2C71BF #BF2CBA #BF7A2C #2CBF31
square
#2C71BF #BF2CBA #BF7A2C #2CBF31
split-complementary
#2C71BF #BF312C #BABF2C
monochromatic
#15365C #21548D #2C71BF #5190D7 #83B0E2

Accessibility & contrast

On white

4.97
#2C71BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#2C71BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71BF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71BF#FFFFFF#000000##FFFFFF
##2C71BF1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B77C2
Deuteranopia (green-blind)
#336ABD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2c71bf;
/* rgb */ color: rgb(44, 113, 191);
/* oklch */ color: oklch(54.5% 0.140 254.0);
Tailwind
colors: {
  custom: {
    50: '#7a99d3',
    500: '#2c71bf',
    950: '#000000',
  },
}
SCSS
$custom: #2c71bf;
$custom-light: #7a99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71bf",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 211.837,
    "s": 62.553,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5453,
    "c": 0.13986,
    "h": 254
  },
  "luminance": 0.16107
}

Semantic roles & 50–950 ramp

primary
#2C71BF
secondary
#CCA67B
accent
#9942E6
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2C71BF

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

Preview Lab → · Contrast checker → · Palette generator →

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