#2D71C1#2D71C1

#2D71C1 is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.7% C 0.142 H 254.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2D71C1
RGBrgb(45, 113, 193)
HSLhsl(212, 62%, 47%)
HSVhsv(212, 77%, 76%)
CMYKcmyk(76.7%, 41.5%, 0%, 24.3%)
CIE-LABlab(47.26, 6.88, -47.96)
CIE-LCHlch(47.26, 48.45, 278.16°)
OKLaboklab(54.69% -0.0375 -0.1371)
OKLCHoklch(54.69% 0.142 254.7)
XYZxyz(16.6094, 16.2165, 52.6965)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71C1 #C17D2D
analogous
#2DBBC1 #2D71C1 #332DC1
triadic
#2D71C1 #C12D71 #71C12D
tetradic
#2D71C1 #C12DBB #C17D2D #2DC133
square
#2D71C1 #C12DBB #C17D2D #2DC133
split-complementary
#2D71C1 #C1332D #BBC12D
monochromatic
#16375E #21548F #2D71C1 #5490D7 #86B0E3

Accessibility & contrast

On white

4.95
#2D71C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#2D71C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71C1
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71C1#FFFFFF#000000##FFFFFF
##2D71C11.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A77C4
Deuteranopia (green-blind)
#316ABF
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2d71c1;
/* rgb */ color: rgb(45, 113, 193);
/* oklch */ color: oklch(54.7% 0.142 254.7);
Tailwind
colors: {
  custom: {
    50: '#7b99d4',
    500: '#2d71c1',
    950: '#000000',
  },
}
SCSS
$custom: #2d71c1;
$custom-light: #7b99d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71c1",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 193
  },
  "hsl": {
    "h": 212.432,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54688,
    "c": 0.14218,
    "h": 254.7
  },
  "luminance": 0.16218
}

Semantic roles & 50–950 ramp

primary
#2D71C1
secondary
#CCA87E
accent
#9A43E5
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2D71C1

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

Preview Lab → · Contrast checker → · Palette generator →

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