#2D71CC#2D71CC

#2D71CC is a mid, vivid cyan. Relative luminance 0.167; OKLCH L 55.4% C 0.157 H 257.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2D71CC
RGBrgb(45, 113, 204)
HSLhsl(214, 64%, 49%)
HSVhsv(214, 78%, 80%)
CMYKcmyk(77.9%, 44.6%, 0%, 20%)
CIE-LABlab(47.91, 11.02, -53.23)
CIE-LCHlch(47.91, 54.36, 281.70°)
OKLaboklab(55.41% -0.0353 -0.1526)
OKLCHoklch(55.41% 0.157 257)
XYZxyz(17.8824, 16.7257, 59.4009)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71CC #CC882D
analogous
#2DC1CC #2D71CC #392DCC
triadic
#2D71CC #CC2D71 #71CC2D
tetradic
#2D71CC #CC2DC1 #CC882D #2DCC39
square
#2D71CC #CC2DC1 #CC882D #2DCC39
split-complementary
#2D71CC #CC392D #C1CC2D
monochromatic
#173968 #22559A #2D71CC #5B92DB #8DB3E6

Accessibility & contrast

On white

4.83
#2D71CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#2D71CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71CC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71CC#FFFFFF#000000##FFFFFF
##2D71CC1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4279CF
Deuteranopia (green-blind)
#206BCA
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2d71cc;
/* rgb */ color: rgb(45, 113, 204);
/* oklch */ color: oklch(55.4% 0.157 257.0);
Tailwind
colors: {
  custom: {
    50: '#7d99dc',
    500: '#2d71cc',
    950: '#000000',
  },
}
SCSS
$custom: #2d71cc;
$custom-light: #7d99dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71cc",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 214.34,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55408,
    "c": 0.15664,
    "h": 257
  },
  "luminance": 0.16728
}

Semantic roles & 50–950 ramp

primary
#2D71CC
secondary
#D0B085
accent
#A041E7
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2D71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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