#2A5879#2A5879

#2A5879 is a dark, moderate cyan. Relative luminance 0.089; OKLCH L 44.3% C 0.074 H 242.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2A5879
RGBrgb(42, 88, 121)
HSLhsl(205, 48%, 32%)
HSVhsv(205, 65%, 47%)
CMYKcmyk(65.3%, 27.3%, 0%, 52.5%)
CIE-LABlab(35.70, -4.68, -23.37)
CIE-LCHlch(35.70, 23.83, 258.69°)
OKLaboklab(44.34% -0.0346 -0.0657)
OKLCHoklch(44.34% 0.074 242.2)
XYZxyz(7.8945, 8.8514, 19.3779)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5879 #794B2A
analogous
#2A7973 #2A5879 #2A3179
triadic
#2A5879 #792A58 #58792A
tetradic
#2A5879 #732A79 #794B2A #31792A
square
#2A5879 #732A79 #794B2A #31792A
split-complementary
#2A5879 #792A31 #79732A
monochromatic
#0A161E #1A374C #2A5879 #3A79A6 #5898C5

Accessibility & contrast

On white

7.58
#2A5879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2A5879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5879
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5879#FFFFFF#000000##FFFFFF
##2A58791.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49587B
Deuteranopia (green-blind)
#3E5078
Tritanopia (blue-blind)
#006063
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5879;
/* rgb */ color: rgb(42, 88, 121);
/* oklch */ color: oklch(44.3% 0.074 242.2);
Tailwind
colors: {
  custom: {
    50: '#6c87a0',
    500: '#2a5879',
    950: '#000000',
  },
}
SCSS
$custom: #2a5879;
$custom-light: #6c87a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5879",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 121
  },
  "hsl": {
    "h": 205.063,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44337,
    "c": 0.07426,
    "h": 242.2
  },
  "luminance": 0.08852
}

Semantic roles & 50–950 ramp

primary
#2A5879
secondary
#AB7854
accent
#8950D8
background
#F6F8F9
surface
#ECEFF2
border
#C7CACC
text
#070B0E
muted
#7A7C7E

Preview Lab

Preview with #2A5879

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

Preview Lab → · Contrast checker → · Palette generator →

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