#2A517D#2A517D

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

Color values

HEX#2A517D
RGBrgb(42, 81, 125)
HSLhsl(212, 50%, 33%)
HSVhsv(212, 66%, 49%)
CMYKcmyk(66.4%, 35.2%, 0%, 51%)
CIE-LABlab(33.68, 1.23, -28.99)
CIE-LCHlch(33.68, 29.02, 272.44°)
OKLaboklab(42.82% -0.0253 -0.0821)
OKLCHoklch(42.82% 0.086 252.9)
XYZxyz(7.5976, 7.8570, 20.5142)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A517D #7D562A
analogous
#2A7B7D #2A517D #2C2A7D
triadic
#2A517D #7D2A51 #517D2A
tetradic
#2A517D #7D2A7B #7D562A #2A7D2C
square
#2A517D #7D2A7B #7D562A #2A7D2C
split-complementary
#2A517D #7D2C2A #7B7D2A
monochromatic
#0B1621 #1B334F #2A517D #396FAB #5A8DC8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A517D#FFFFFF#000000##FFFFFF
##2A517D1.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)
#3E547F
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#005B61
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a517d;
/* rgb */ color: rgb(42, 81, 125);
/* oklch */ color: oklch(42.8% 0.086 252.9);
Tailwind
colors: {
  custom: {
    50: '#6d81a3',
    500: '#2a517d',
    950: '#000000',
  },
}
SCSS
$custom: #2a517d;
$custom-light: #6d81a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a517d",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 125
  },
  "hsl": {
    "h": 211.807,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4282,
    "c": 0.0859,
    "h": 252.9
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#2A517D
secondary
#AD8456
accent
#984FD9
background
#F6F7FA
surface
#ECEEF3
border
#C7C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #2A517D

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

Preview Lab → · Contrast checker → · Palette generator →

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