#2A5874#2A5874

#2A5874 is a dark, moderate cyan. Relative luminance 0.087; OKLCH L 44.1% C 0.068 H 237.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2A5874
RGBrgb(42, 88, 116)
HSLhsl(203, 47%, 31%)
HSVhsv(203, 64%, 45%)
CMYKcmyk(63.8%, 24.1%, 0%, 54.5%)
CIE-LABlab(35.46, -6.45, -20.64)
CIE-LCHlch(35.46, 21.62, 252.63°)
OKLaboklab(44.08% -0.0364 -0.0578)
OKLCHoklch(44.08% 0.068 237.8)
XYZxyz(7.5958, 8.7319, 17.8047)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5874 #74462A
analogous
#2A746B #2A5874 #2A3374
triadic
#2A5874 #742A58 #58742A
tetradic
#2A5874 #6B2A74 #74462A #33742A
square
#2A5874 #6B2A74 #74462A #33742A
split-complementary
#2A5874 #742A33 #746B2A
monochromatic
#09141A #1A3647 #2A5874 #3A7AA1 #5699C2

Accessibility & contrast

On white

7.65
#2A5874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A5874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5874
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5874#FFFFFF#000000##FFFFFF
##2A58741.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5875
Deuteranopia (green-blind)
#415074
Tritanopia (blue-blind)
#005F61
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5874;
/* rgb */ color: rgb(42, 88, 116);
/* oklch */ color: oklch(44.1% 0.068 237.8);
Tailwind
colors: {
  custom: {
    50: '#6b879c',
    500: '#2a5874',
    950: '#000000',
  },
}
SCSS
$custom: #2a5874;
$custom-light: #6b879c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5874",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 116
  },
  "hsl": {
    "h": 202.703,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.44075,
    "c": 0.06836,
    "h": 237.8
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#2A5874
secondary
#A67354
accent
#8451D6
background
#F6F8F9
surface
#ECEFF2
border
#C7CACC
text
#070B0E
muted
#7A7C7E

Preview Lab

Preview with #2A5874

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

Preview Lab → · Contrast checker → · Palette generator →

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