#2D71A5#2D71A5

#2D71A5 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.0% C 0.106 H 245.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2D71A5
RGBrgb(45, 113, 165)
HSLhsl(206, 57%, 41%)
HSVhsv(206, 73%, 65%)
CMYKcmyk(72.7%, 31.5%, 0%, 35.3%)
CIE-LABlab(45.75, -3.51, -34.07)
CIE-LCHlch(45.75, 34.25, 264.12°)
OKLaboklab(53.01% -0.0449 -0.0965)
OKLCHoklch(53.01% 0.106 245)
XYZxyz(13.7762, 15.0832, 37.7753)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71A5 #A5612D
analogous
#2DA59D #2D71A5 #2D35A5
triadic
#2D71A5 #A52D71 #71A52D
tetradic
#2D71A5 #9D2DA5 #A5612D #35A52D
square
#2D71A5 #9D2DA5 #A5612D #35A52D
split-complementary
#2D71A5 #A52D35 #A59D2D
monochromatic
#132F45 #205075 #2D71A5 #4391CC #73ADD9

Accessibility & contrast

On white

5.23
#2D71A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D71A5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71A5#FFFFFF#000000##FFFFFF
##2D71A51.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5973A7
Deuteranopia (green-blind)
#4967A4
Tritanopia (blue-blind)
#007E83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d71a5;
/* rgb */ color: rgb(45, 113, 165);
/* oklch */ color: oklch(53.0% 0.106 245.0);
Tailwind
colors: {
  custom: {
    50: '#7699c0',
    500: '#2d71a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d71a5;
$custom-light: #7699c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71a5",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 165
  },
  "hsl": {
    "h": 206,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53014,
    "c": 0.10643,
    "h": 245
  },
  "luminance": 0.15085
}

Semantic roles & 50–950 ramp

primary
#2D71A5
secondary
#C1916D
accent
#8A47E0
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2D71A5

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

Preview Lab → · Contrast checker → · Palette generator →

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