#2A517E#2A517E

#2A517E is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 42.9% C 0.087 H 253.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#2A517E
RGBrgb(42, 81, 126)
HSLhsl(212, 50%, 33%)
HSVhsv(212, 67%, 49%)
CMYKcmyk(66.7%, 35.7%, 0%, 50.6%)
CIE-LABlab(33.74, 1.60, -29.53)
CIE-LCHlch(33.74, 29.57, 273.11°)
OKLaboklab(42.88% -0.0249 -0.0837)
OKLCHoklch(42.88% 0.087 253.4)
XYZxyz(7.6618, 7.8827, 20.8524)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A517E #7E572A
analogous
#2A7B7E #2A517E #2D2A7E
triadic
#2A517E #7E2A51 #517E2A
tetradic
#2A517E #7E2A7B #7E572A #2A7E2D
square
#2A517E #7E2A7B #7E572A #2A7E2D
split-complementary
#2A517E #7E2D2A #7B7E2A
monochromatic
#0B1622 #1B3350 #2A517E #396FAC #5A8DC8

Accessibility & contrast

On white

8.15
#2A517E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2A517E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A517E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A517E#FFFFFF#000000##FFFFFF
##2A517E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5480
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#005B61
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a517e;
/* rgb */ color: rgb(42, 81, 126);
/* oklch */ color: oklch(42.9% 0.087 253.4);
Tailwind
colors: {
  custom: {
    50: '#6d81a3',
    500: '#2a517e',
    950: '#000000',
  },
}
SCSS
$custom: #2a517e;
$custom-light: #6d81a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a517e",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 126
  },
  "hsl": {
    "h": 212.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4288,
    "c": 0.08731,
    "h": 253.4
  },
  "luminance": 0.07883
}

Semantic roles & 50–950 ramp

primary
#2A517E
secondary
#AE8556
accent
#994EDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #2A517E

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

Preview Lab → · Contrast checker → · Palette generator →

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