#2D71B2#2D71B2

#2D71B2 is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 53.8% C 0.123 H 250.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#2D71B2
RGBrgb(45, 113, 178)
HSLhsl(209, 60%, 44%)
HSVhsv(209, 75%, 70%)
CMYKcmyk(74.7%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.42, 1.27, -40.61)
CIE-LCHlch(46.42, 40.63, 271.79°)
OKLaboklab(53.76% -0.0412 -0.1156)
OKLCHoklch(53.76% 0.123 250.4)
XYZxyz(15.0202, 15.5808, 44.3266)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71B2 #B26E2D
analogous
#2DB2B0 #2D71B2 #2D2FB2
triadic
#2D71B2 #B22D71 #71B22D
tetradic
#2D71B2 #B02DB2 #B26E2D #2FB22D
square
#2D71B2 #B02DB2 #B26E2D #2FB22D
split-complementary
#2D71B2 #B22D2F #B2B02D
monochromatic
#143350 #215281 #2D71B2 #4B90D1 #7CAEDE

Accessibility & contrast

On white

5.10
#2D71B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2D71B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71B2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71B2#FFFFFF#000000##FFFFFF
##2D71B21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#3F68B1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d71b2;
/* rgb */ color: rgb(45, 113, 178);
/* oklch */ color: oklch(53.8% 0.123 250.4);
Tailwind
colors: {
  custom: {
    50: '#7899c9',
    500: '#2d71b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d71b2;
$custom-light: #7899c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71b2",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 209.323,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53762,
    "c": 0.12269,
    "h": 250.4
  },
  "luminance": 0.15582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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