#2D71B8#2D71B8

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

Color values

HEX#2D71B8
RGBrgb(45, 113, 184)
HSLhsl(211, 61%, 45%)
HSVhsv(211, 76%, 72%)
CMYKcmyk(75.5%, 38.6%, 0%, 27.8%)
CIE-LABlab(46.75, 3.51, -43.57)
CIE-LCHlch(46.75, 43.71, 274.60°)
OKLaboklab(54.12% -0.0396 -0.1243)
OKLCHoklch(54.12% 0.13 252.3)
XYZxyz(15.6358, 15.8270, 47.5690)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71B8 #B8742D
analogous
#2DB7B8 #2D71B8 #2E2DB8
triadic
#2D71B8 #B82D71 #71B82D
tetradic
#2D71B8 #B82DB7 #B8742D #2DB82E
square
#2D71B8 #B82DB7 #B8742D #2DB82E
split-complementary
#2D71B8 #B82E2D #B7B82D
monochromatic
#153556 #215387 #2D71B8 #4E90D4 #80AFE0

Accessibility & contrast

On white

5.04
#2D71B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2D71B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71B8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71B8#FFFFFF#000000##FFFFFF
##2D71B81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.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: #2d71b8;
/* rgb */ color: rgb(45, 113, 184);
/* oklch */ color: oklch(54.1% 0.130 252.3);
Tailwind
colors: {
  custom: {
    50: '#7999ce',
    500: '#2d71b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d71b8;
$custom-light: #7999ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71b8",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 210.647,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54124,
    "c": 0.13043,
    "h": 252.3
  },
  "luminance": 0.15829
}

Semantic roles & 50–950 ramp

primary
#2D71B8
secondary
#C9A178
accent
#9644E4
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2D71B8

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

Preview Lab → · Contrast checker → · Palette generator →

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