#2D71C5#2D71C5

#2D71C5 is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 54.9% C 0.147 H 255.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2D71C5
RGBrgb(45, 113, 197)
HSLhsl(213, 63%, 47%)
HSVhsv(213, 77%, 77%)
CMYKcmyk(77.2%, 42.6%, 0%, 22.7%)
CIE-LABlab(47.49, 8.38, -49.89)
CIE-LCHlch(47.49, 50.59, 279.54°)
OKLaboklab(54.95% -0.0367 -0.1428)
OKLCHoklch(54.95% 0.147 255.6)
XYZxyz(17.0616, 16.3974, 55.0783)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71C5 #C5812D
analogous
#2DBDC5 #2D71C5 #352DC5
triadic
#2D71C5 #C52D71 #71C52D
tetradic
#2D71C5 #C52DBD #C5812D #2DC535
square
#2D71C5 #C52DBD #C5812D #2DC535
split-complementary
#2D71C5 #C5352D #BDC52D
monochromatic
#163861 #225493 #2D71C5 #5791D9 #88B1E4

Accessibility & contrast

On white

4.91
#2D71C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#2D71C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71C5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71C5#FFFFFF#000000##FFFFFF
##2D71C51.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4778C8
Deuteranopia (green-blind)
#2B6AC3
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2d71c5;
/* rgb */ color: rgb(45, 113, 197);
/* oklch */ color: oklch(54.9% 0.147 255.6);
Tailwind
colors: {
  custom: {
    50: '#7c99d7',
    500: '#2d71c5',
    950: '#000000',
  },
}
SCSS
$custom: #2d71c5;
$custom-light: #7c99d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71c5",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 197
  },
  "hsl": {
    "h": 213.158,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54946,
    "c": 0.14743,
    "h": 255.6
  },
  "luminance": 0.16399
}

Semantic roles & 50–950 ramp

primary
#2D71C5
secondary
#CEAB80
accent
#9D42E6
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2D71C5

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

Preview Lab → · Contrast checker → · Palette generator →

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