#2C71B8#2C71B8

#2C71B8 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.131 H 252.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2C71B8
RGBrgb(44, 113, 184)
HSLhsl(210, 61%, 45%)
HSVhsv(210, 76%, 72%)
CMYKcmyk(76.1%, 38.6%, 0%, 27.8%)
CIE-LABlab(46.72, 3.38, -43.62)
CIE-LCHlch(46.72, 43.75, 274.43°)
OKLaboklab(54.09% -0.0402 -0.1244)
OKLCHoklch(54.09% 0.131 252.1)
XYZxyz(15.5923, 15.8046, 47.5669)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71B8 #B8732C
analogous
#2CB7B8 #2C71B8 #2D2CB8
triadic
#2C71B8 #B82C71 #71B82C
tetradic
#2C71B8 #B82CB7 #B8732C #2CB82D
square
#2C71B8 #B82CB7 #B8732C #2CB82D
split-complementary
#2C71B8 #B82D2C #B7B82C
monochromatic
#143455 #205387 #2C71B8 #4D90D4 #7EAEE0

Accessibility & contrast

On white

5.05
#2C71B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2C71B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71B8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71B8#FFFFFF#000000##FFFFFF
##2C71B81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c71b8;
/* rgb */ color: rgb(44, 113, 184);
/* oklch */ color: oklch(54.1% 0.131 252.1);
Tailwind
colors: {
  custom: {
    50: '#7999ce',
    500: '#2c71b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c71b8;
$custom-light: #7999ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71b8",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 210.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54093,
    "c": 0.13075,
    "h": 252.1
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#2C71B8
secondary
#C9A077
accent
#9543E5
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2C71B8

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

Preview Lab → · Contrast checker → · Palette generator →

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