#2D71AB#2D71AB

#2D71AB is a mid, moderate cyan. Relative luminance 0.153; OKLCH L 53.4% C 0.114 H 247.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2D71AB
RGBrgb(45, 113, 171)
HSLhsl(208, 58%, 42%)
HSVhsv(208, 74%, 67%)
CMYKcmyk(73.7%, 33.9%, 0%, 32.9%)
CIE-LABlab(46.05, -1.31, -37.11)
CIE-LCHlch(46.05, 37.13, 267.97°)
OKLaboklab(53.35% -0.0431 -0.1053)
OKLCHoklch(53.35% 0.114 247.7)
XYZxyz(14.3352, 15.3068, 40.7192)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71AB #AB672D
analogous
#2DABA6 #2D71AB #2D32AB
triadic
#2D71AB #AB2D71 #71AB2D
tetradic
#2D71AB #A62DAB #AB672D #32AB2D
square
#2D71AB #A62DAB #AB672D #32AB2D
split-complementary
#2D71AB #AB2D32 #ABA62D
monochromatic
#14314A #20517B #2D71AB #4790CE #77ADDB

Accessibility & contrast

On white

5.17
#2D71AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2D71AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71AB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71AB#FFFFFF#000000##FFFFFF
##2D71AB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5774AD
Deuteranopia (green-blind)
#4568AA
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d71ab;
/* rgb */ color: rgb(45, 113, 171);
/* oklch */ color: oklch(53.4% 0.114 247.7);
Tailwind
colors: {
  custom: {
    50: '#7799c4',
    500: '#2d71ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d71ab;
$custom-light: #7799c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71ab",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 207.619,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53352,
    "c": 0.11382,
    "h": 247.7
  },
  "luminance": 0.15308
}

Semantic roles & 50–950 ramp

primary
#2D71AB
secondary
#C39771
accent
#8E46E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2D71AB

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

Preview Lab → · Contrast checker → · Palette generator →

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