#2D517A#2D517A

#2D517A is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.8% C 0.080 H 252.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2D517A
RGBrgb(45, 81, 122)
HSLhsl(212, 46%, 33%)
HSVhsv(212, 63%, 48%)
CMYKcmyk(63.1%, 33.6%, 0%, 52.2%)
CIE-LABlab(33.66, 0.74, -27.16)
CIE-LCHlch(33.66, 27.17, 271.56°)
OKLaboklab(42.79% -0.0236 -0.0767)
OKLCHoklch(42.79% 0.08 252.9)
XYZxyz(7.5362, 7.8472, 19.5261)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D517A #7A562D
analogous
#2D777A #2D517A #2F2D7A
triadic
#2D517A #7A2D51 #517A2D
tetradic
#2D517A #7A2D77 #7A562D #2D7A2F
square
#2D517A #7A2D77 #7A562D #2D7A2F
split-complementary
#2D517A #7A2F2D #777A2D
monochromatic
#0C1621 #1D334D #2D517A #3D6FA7 #5E8DC4

Accessibility & contrast

On white

8.17
#2D517A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2D517A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D517A
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D517A#FFFFFF#000000##FFFFFF
##2D517A1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40537C
Deuteranopia (green-blind)
#354C79
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d517a;
/* rgb */ color: rgb(45, 81, 122);
/* oklch */ color: oklch(42.8% 0.080 252.9);
Tailwind
colors: {
  custom: {
    50: '#6d81a0',
    500: '#2d517a',
    950: '#000000',
  },
}
SCSS
$custom: #2d517a;
$custom-light: #6d81a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d517a",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 122
  },
  "hsl": {
    "h": 211.948,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42789,
    "c": 0.08026,
    "h": 252.9
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#2D517A
secondary
#AA8459
accent
#9852D6
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #2D517A

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

Preview Lab → · Contrast checker → · Palette generator →

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