#2A5876#2A5876

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

Color values

HEX#2A5876
RGBrgb(42, 88, 118)
HSLhsl(204, 48%, 31%)
HSVhsv(204, 64%, 46%)
CMYKcmyk(64.4%, 25.4%, 0%, 53.7%)
CIE-LABlab(35.56, -5.75, -21.73)
CIE-LCHlch(35.56, 22.48, 255.19°)
OKLaboklab(44.18% -0.0357 -0.061)
OKLCHoklch(44.18% 0.071 239.7)
XYZxyz(7.7133, 8.7789, 18.4240)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5876 #76482A
analogous
#2A766E #2A5876 #2A3276
triadic
#2A5876 #762A58 #58762A
tetradic
#2A5876 #6E2A76 #76482A #32762A
square
#2A5876 #6E2A76 #76482A #32762A
split-complementary
#2A5876 #762A32 #766E2A
monochromatic
#0A151C #1A3649 #2A5876 #3A7AA3 #5799C3

Accessibility & contrast

On white

7.62
#2A5876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5876
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5876#FFFFFF#000000##FFFFFF
##2A58761.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5877
Deuteranopia (green-blind)
#405075
Tritanopia (blue-blind)
#006062
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5876;
/* rgb */ color: rgb(42, 88, 118);
/* oklch */ color: oklch(44.2% 0.071 239.7);
Tailwind
colors: {
  custom: {
    50: '#6c879d',
    500: '#2a5876',
    950: '#000000',
  },
}
SCSS
$custom: #2a5876;
$custom-light: #6c879d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5876",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 118
  },
  "hsl": {
    "h": 203.684,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.44179,
    "c": 0.07067,
    "h": 239.7
  },
  "luminance": 0.0878
}

Semantic roles & 50–950 ramp

primary
#2A5876
secondary
#A87554
accent
#8651D7
background
#F6F8F9
surface
#ECEFF2
border
#C7CACC
text
#070B0E
muted
#7A7C7E

Preview Lab

Preview with #2A5876

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

Preview Lab → · Contrast checker → · Palette generator →

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