#2D71B6#2D71B6

#2D71B6 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 54.0% C 0.128 H 251.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2D71B6
RGBrgb(45, 113, 182)
HSLhsl(210, 60%, 45%)
HSVhsv(210, 75%, 71%)
CMYKcmyk(75.3%, 37.9%, 0%, 28.6%)
CIE-LABlab(46.64, 2.76, -42.59)
CIE-LCHlch(46.64, 42.68, 273.71°)
OKLaboklab(54% -0.0401 -0.1214)
OKLCHoklch(54% 0.128 251.7)
XYZxyz(15.4276, 15.7438, 46.4727)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71B6 #B6722D
analogous
#2DB6B6 #2D71B6 #2E2DB6
triadic
#2D71B6 #B62D71 #71B62D
tetradic
#2D71B6 #B62DB6 #B6722D #2DB62E
square
#2D71B6 #B62DB6 #B6722D #2DB62E
split-complementary
#2D71B6 #B62E2D #B6B62D
monochromatic
#153454 #215385 #2D71B6 #4D90D3 #7EAEDF

Accessibility & contrast

On white

5.06
#2D71B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2D71B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71B6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71B6#FFFFFF#000000##FFFFFF
##2D71B61.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5175B9
Deuteranopia (green-blind)
#3C69B5
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d71b6;
/* rgb */ color: rgb(45, 113, 182);
/* oklch */ color: oklch(54.0% 0.128 251.7);
Tailwind
colors: {
  custom: {
    50: '#7999cc',
    500: '#2d71b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d71b6;
$custom-light: #7999cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71b6",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 182
  },
  "hsl": {
    "h": 210.219,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54002,
    "c": 0.12783,
    "h": 251.7
  },
  "luminance": 0.15746
}

Semantic roles & 50–950 ramp

primary
#2D71B6
secondary
#C8A077
accent
#9444E3
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2D71B6

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

Preview Lab → · Contrast checker → · Palette generator →

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