#2A5871#2A5871

#2A5871 is a dark, moderate cyan. Relative luminance 0.087; OKLCH L 43.9% C 0.065 H 234.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2A5871
RGBrgb(42, 88, 113)
HSLhsl(201, 46%, 30%)
HSVhsv(201, 63%, 44%)
CMYKcmyk(62.8%, 22.1%, 0%, 55.7%)
CIE-LABlab(35.33, -7.51, -18.99)
CIE-LCHlch(35.33, 20.42, 248.43°)
OKLaboklab(43.92% -0.0376 -0.0531)
OKLCHoklch(43.92% 0.065 234.7)
XYZxyz(7.4241, 8.6632, 16.9005)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5871 #71432A
analogous
#2A7166 #2A5871 #2A3471
triadic
#2A5871 #712A58 #58712A
tetradic
#2A5871 #662A71 #71432A #34712A
square
#2A5871 #662A71 #71432A #34712A
split-complementary
#2A5871 #712A34 #71662A
monochromatic
#091318 #193544 #2A5871 #3B7B9E #559AC0

Accessibility & contrast

On white

7.68
#2A5871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2A5871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5871
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5871#FFFFFF#000000##FFFFFF
##2A58711.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5772
Deuteranopia (green-blind)
#425071
Tritanopia (blue-blind)
#005F60
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5871;
/* rgb */ color: rgb(42, 88, 113);
/* oklch */ color: oklch(43.9% 0.065 234.7);
Tailwind
colors: {
  custom: {
    50: '#6b879a',
    500: '#2a5871',
    950: '#000000',
  },
}
SCSS
$custom: #2a5871;
$custom-light: #6b879a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5871",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 113
  },
  "hsl": {
    "h": 201.127,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43923,
    "c": 0.06506,
    "h": 234.7
  },
  "luminance": 0.08664
}

Semantic roles & 50–950 ramp

primary
#2A5871
secondary
#A37054
accent
#8152D5
background
#F6F8F9
surface
#ECEFF2
border
#C7CACC
text
#070B0E
muted
#7A7C7E

Preview Lab

Preview with #2A5871

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

Preview Lab → · Contrast checker → · Palette generator →

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