#2D71A1#2D71A1

#2D71A1 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.8% C 0.102 H 243.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2D71A1
RGBrgb(45, 113, 161)
HSLhsl(205, 56%, 40%)
HSVhsv(205, 72%, 63%)
CMYKcmyk(72%, 29.8%, 0%, 36.9%)
CIE-LABlab(45.55, -4.96, -32.03)
CIE-LCHlch(45.55, 32.41, 261.19°)
OKLaboklab(52.79% -0.0462 -0.0905)
OKLCHoklch(52.79% 0.102 243)
XYZxyz(13.4179, 14.9399, 35.8878)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D71A1 #A15D2D
analogous
#2DA197 #2D71A1 #2D37A1
triadic
#2D71A1 #A12D71 #71A12D
tetradic
#2D71A1 #972DA1 #A15D2D #37A12D
square
#2D71A1 #972DA1 #A15D2D #37A12D
split-complementary
#2D71A1 #A12D37 #A1972D
monochromatic
#122E41 #204F71 #2D71A1 #4191CA #71ADD7

Accessibility & contrast

On white

5.27
#2D71A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2D71A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D71A1
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D71A1#FFFFFF#000000##FFFFFF
##2D71A11.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A3
Deuteranopia (green-blind)
#4B67A0
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d71a1;
/* rgb */ color: rgb(45, 113, 161);
/* oklch */ color: oklch(52.8% 0.102 243.0);
Tailwind
colors: {
  custom: {
    50: '#7599bd',
    500: '#2d71a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d71a1;
$custom-light: #7599bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d71a1",
  "rgb": {
    "r": 45,
    "g": 113,
    "b": 161
  },
  "hsl": {
    "h": 204.828,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52794,
    "c": 0.10164,
    "h": 243
  },
  "luminance": 0.14941
}

Semantic roles & 50–950 ramp

primary
#2D71A1
secondary
#BF8E6B
accent
#8748E0
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2D71A1

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

Preview Lab → · Contrast checker → · Palette generator →

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