#2D71B7#2D71B7

#2D71B7 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.129 H 252.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2D71B7
RGBrgb(45, 113, 183)
HSLhsl(210, 61%, 45%)
HSVhsv(210, 75%, 72%)
CMYKcmyk(75.4%, 38.3%, 0%, 28.2%)
CIE-LABlab(46.69, 3.13, -43.08)
CIE-LCHlch(46.69, 43.20, 274.16°)
OKLaboklab(54.06% -0.0399 -0.1228)
OKLCHoklch(54.06% 0.129 252)
XYZxyz(15.5314, 15.7853, 47.0189)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71B7 #B7732D
analogous
#2DB6B7 #2D71B7 #2E2DB7
triadic
#2D71B7 #B72D71 #71B72D
tetradic
#2D71B7 #B72DB6 #B7732D #2DB72E
square
#2D71B7 #B72DB6 #B7732D #2DB72E
split-complementary
#2D71B7 #B72E2D #B6B72D
monochromatic
#153455 #215386 #2D71B7 #4E90D3 #7FAEDF

Accessibility & contrast

On white

5.05
#2D71B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2D71B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71B7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71B7#FFFFFF#000000##FFFFFF
##2D71B71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5076BA
Deuteranopia (green-blind)
#3B69B6
Tritanopia (blue-blind)
#00828B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2d71b7;
/* rgb */ color: rgb(45, 113, 183);
/* oklch */ color: oklch(54.1% 0.129 252.0);
Tailwind
colors: {
  custom: {
    50: '#7999cd',
    500: '#2d71b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d71b7;
$custom-light: #7999cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71b7",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 210.435,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54063,
    "c": 0.12913,
    "h": 252
  },
  "luminance": 0.15787
}

Semantic roles & 50–950 ramp

primary
#2D71B7
secondary
#C8A078
accent
#9544E4
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2D71B7

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

Preview Lab → · Contrast checker → · Palette generator →

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