#2C71B3#2C71B3

#2C71B3 is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 53.8% C 0.124 H 250.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2C71B3
RGBrgb(44, 113, 179)
HSLhsl(209, 61%, 44%)
HSVhsv(209, 75%, 70%)
CMYKcmyk(75.4%, 36.9%, 0%, 29.8%)
CIE-LABlab(46.44, 1.51, -41.15)
CIE-LCHlch(46.44, 41.18, 272.10°)
OKLaboklab(53.79% -0.0415 -0.1172)
OKLCHoklch(53.79% 0.124 250.5)
XYZxyz(15.0774, 15.5987, 44.8553)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C71B3 #B36E2C
analogous
#2CB3B1 #2C71B3 #2C2EB3
triadic
#2C71B3 #B32C71 #71B32C
tetradic
#2C71B3 #B12CB3 #B36E2C #2EB32C
square
#2C71B3 #B12CB3 #B36E2C #2EB32C
split-complementary
#2C71B3 #B32C2E #B3B12C
monochromatic
#143351 #205282 #2C71B3 #4A90D2 #7BAEDF

Accessibility & contrast

On white

5.10
#2C71B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2C71B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C71B3
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C71B3#FFFFFF#000000##FFFFFF
##2C71B31.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5275B6
Deuteranopia (green-blind)
#3E68B2
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2c71b3;
/* rgb */ color: rgb(44, 113, 179);
/* oklch */ color: oklch(53.8% 0.124 250.5);
Tailwind
colors: {
  custom: {
    50: '#7899ca',
    500: '#2c71b3',
    950: '#000000',
  },
}
SCSS
$custom: #2c71b3;
$custom-light: #7899ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c71b3",
  "rgb": {
    "r": 44,
    "g": 113,
    "b": 179
  },
  "hsl": {
    "h": 209.333,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53789,
    "c": 0.12432,
    "h": 250.5
  },
  "luminance": 0.156
}

Semantic roles & 50–950 ramp

primary
#2C71B3
secondary
#C79C74
accent
#9244E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2C71B3

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

Preview Lab → · Contrast checker → · Palette generator →

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