#2D71A6#2D71A6

#2D71A6 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.1% C 0.108 H 245.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2D71A6
RGBrgb(45, 113, 166)
HSLhsl(206, 57%, 41%)
HSVhsv(206, 73%, 65%)
CMYKcmyk(72.9%, 31.9%, 0%, 34.9%)
CIE-LABlab(45.80, -3.15, -34.58)
CIE-LCHlch(45.80, 34.72, 264.80°)
OKLaboklab(53.07% -0.0446 -0.098)
OKLCHoklch(53.07% 0.108 245.5)
XYZxyz(13.8676, 15.1198, 38.2565)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71A6 #A6622D
analogous
#2DA69F #2D71A6 #2D35A6
triadic
#2D71A6 #A62D71 #71A62D
tetradic
#2D71A6 #9F2DA6 #A6622D #35A62D
square
#2D71A6 #9F2DA6 #A6622D #35A62D
split-complementary
#2D71A6 #A62D35 #A69F2D
monochromatic
#132F46 #205076 #2D71A6 #4491CC #74ADD9

Accessibility & contrast

On white

5.22
#2D71A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2D71A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71A6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71A6#FFFFFF#000000##FFFFFF
##2D71A61.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5973A8
Deuteranopia (green-blind)
#4867A5
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d71a6;
/* rgb */ color: rgb(45, 113, 166);
/* oklch */ color: oklch(53.1% 0.108 245.5);
Tailwind
colors: {
  custom: {
    50: '#7699c0',
    500: '#2d71a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d71a6;
$custom-light: #7699c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71a6",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 166
  },
  "hsl": {
    "h": 206.281,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53069,
    "c": 0.10764,
    "h": 245.5
  },
  "luminance": 0.15121
}

Semantic roles & 50–950 ramp

primary
#2D71A6
secondary
#C1926E
accent
#8A47E1
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2D71A6

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

Preview Lab → · Contrast checker → · Palette generator →

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