#2D71B1#2D71B1

#2D71B1 is a mid, vivid cyan. Relative luminance 0.155; OKLCH L 53.7% C 0.121 H 250.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2D71B1
RGBrgb(45, 113, 177)
HSLhsl(209, 59%, 44%)
HSVhsv(209, 75%, 69%)
CMYKcmyk(74.6%, 36.2%, 0%, 30.6%)
CIE-LABlab(46.37, 0.90, -40.11)
CIE-LCHlch(46.37, 40.12, 271.29°)
OKLaboklab(53.7% -0.0414 -0.1141)
OKLCHoklch(53.7% 0.121 250)
XYZxyz(14.9201, 15.5408, 43.7998)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71B1 #B16D2D
analogous
#2DB1AF #2D71B1 #2D2FB1
triadic
#2D71B1 #B12D71 #71B12D
tetradic
#2D71B1 #AF2DB1 #B16D2D #2FB12D
square
#2D71B1 #AF2DB1 #B16D2D #2FB12D
split-complementary
#2D71B1 #B12D2F #B1AF2D
monochromatic
#14334F #215280 #2D71B1 #4A90D1 #7BAEDD

Accessibility & contrast

On white

5.11
#2D71B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2D71B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71B1
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71B1#FFFFFF#000000##FFFFFF
##2D71B11.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B4
Deuteranopia (green-blind)
#4068B0
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d71b1;
/* rgb */ color: rgb(45, 113, 177);
/* oklch */ color: oklch(53.7% 0.121 250.0);
Tailwind
colors: {
  custom: {
    50: '#7899c8',
    500: '#2d71b1',
    950: '#000000',
  },
}
SCSS
$custom: #2d71b1;
$custom-light: #7899c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71b1",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 177
  },
  "hsl": {
    "h": 209.091,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53702,
    "c": 0.12141,
    "h": 250
  },
  "luminance": 0.15542
}

Semantic roles & 50–950 ramp

primary
#2D71B1
secondary
#C69C74
accent
#9245E3
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2D71B1

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

Preview Lab → · Contrast checker → · Palette generator →

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