#2D5271#2D5271

#2D5271 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.5% C 0.067 H 245.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2D5271
RGBrgb(45, 82, 113)
HSLhsl(207, 43%, 31%)
HSVhsv(207, 60%, 44%)
CMYKcmyk(60.2%, 27.4%, 0%, 55.7%)
CIE-LABlab(33.53, -3.12, -21.77)
CIE-LCHlch(33.53, 21.99, 261.85°)
OKLaboklab(42.54% -0.0278 -0.0611)
OKLCHoklch(42.54% 0.067 245.6)
XYZxyz(7.0790, 7.7841, 16.7490)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5271 #714C2D
analogous
#2D716E #2D5271 #2D3071
triadic
#2D5271 #712D52 #52712D
tetradic
#2D5271 #6E2D71 #714C2D #30712D
square
#2D5271 #6E2D71 #714C2D #30712D
split-complementary
#2D5271 #712D30 #716E2D
monochromatic
#0A1219 #1C3245 #2D5271 #3E729D #5B91BE

Accessibility & contrast

On white

8.21
#2D5271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2D5271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5271
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5271#FFFFFF#000000##FFFFFF
##2D52711.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455372
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#00595D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d5271;
/* rgb */ color: rgb(45, 82, 113);
/* oklch */ color: oklch(42.5% 0.067 245.6);
Tailwind
colors: {
  custom: {
    50: '#6c829a',
    500: '#2d5271',
    950: '#000000',
  },
}
SCSS
$custom: #2d5271;
$custom-light: #6c829a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5271",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 207.353,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42536,
    "c": 0.0671,
    "h": 245.6
  },
  "luminance": 0.07785
}

Semantic roles & 50–950 ramp

primary
#2D5271
secondary
#A37A57
accent
#8E55D3
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2D5271

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

Preview Lab → · Contrast checker → · Palette generator →

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