#2A5877#2A5877

#2A5877 is a dark, moderate cyan. Relative luminance 0.088; OKLCH L 44.2% C 0.072 H 240.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#2A5877
RGBrgb(42, 88, 119)
HSLhsl(204, 48%, 32%)
HSVhsv(204, 65%, 47%)
CMYKcmyk(64.7%, 26.1%, 0%, 53.3%)
CIE-LABlab(35.60, -5.39, -22.28)
CIE-LCHlch(35.60, 22.92, 256.40°)
OKLaboklab(44.23% -0.0353 -0.0626)
OKLCHoklch(44.23% 0.072 240.5)
XYZxyz(7.7731, 8.8028, 18.7387)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5877 #77492A
analogous
#2A7770 #2A5877 #2A3277
triadic
#2A5877 #772A58 #58772A
tetradic
#2A5877 #702A77 #77492A #32772A
square
#2A5877 #702A77 #77492A #32772A
split-complementary
#2A5877 #772A32 #77702A
monochromatic
#0A151D #1A374A #2A5877 #3A79A4 #5898C4

Accessibility & contrast

On white

7.61
#2A5877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2A5877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5877
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5877#FFFFFF#000000##FFFFFF
##2A58771.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5878
Deuteranopia (green-blind)
#3F5076
Tritanopia (blue-blind)
#006063
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5877;
/* rgb */ color: rgb(42, 88, 119);
/* oklch */ color: oklch(44.2% 0.072 240.5);
Tailwind
colors: {
  custom: {
    50: '#6c879e',
    500: '#2a5877',
    950: '#000000',
  },
}
SCSS
$custom: #2a5877;
$custom-light: #6c879e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5877",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 119
  },
  "hsl": {
    "h": 204.156,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44231,
    "c": 0.07185,
    "h": 240.5
  },
  "luminance": 0.08804
}

Semantic roles & 50–950 ramp

primary
#2A5877
secondary
#A97654
accent
#8750D7
background
#F6F8F9
surface
#ECEFF2
border
#C7CACC
text
#070B0E
muted
#7A7C7E

Preview Lab

Preview with #2A5877

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

Preview Lab → · Contrast checker → · Palette generator →

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