#2A5178#2A5178

#2A5178 is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.5% C 0.079 H 250.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2A5178
RGBrgb(42, 81, 120)
HSLhsl(210, 48%, 32%)
HSVhsv(210, 65%, 47%)
CMYKcmyk(65%, 32.5%, 0%, 52.9%)
CIE-LABlab(33.42, -0.61, -26.31)
CIE-LCHlch(33.42, 26.32, 268.66°)
OKLaboklab(42.53% -0.0268 -0.0743)
OKLCHoklch(42.53% 0.079 250.2)
XYZxyz(7.2862, 7.7325, 18.8742)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5178 #78512A
analogous
#2A7878 #2A5178 #2A2A78
triadic
#2A5178 #782A51 #51782A
tetradic
#2A5178 #782A78 #78512A #2A782A
square
#2A5178 #782A78 #78512A #2A782A
split-complementary
#2A5178 #782A2A #78782A
monochromatic
#0A141D #1A324B #2A5178 #3A70A5 #588EC5

Accessibility & contrast

On white

8.25
#2A5178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2A5178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5178
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5178#FFFFFF#000000##FFFFFF
##2A51781.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40537A
Deuteranopia (green-blind)
#364B77
Tritanopia (blue-blind)
#005A5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a5178;
/* rgb */ color: rgb(42, 81, 120);
/* oklch */ color: oklch(42.5% 0.079 250.2);
Tailwind
colors: {
  custom: {
    50: '#6c819f',
    500: '#2a5178',
    950: '#000000',
  },
}
SCSS
$custom: #2a5178;
$custom-light: #6c819f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5178",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 210,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42526,
    "c": 0.07897,
    "h": 250.2
  },
  "luminance": 0.07733
}

Semantic roles & 50–950 ramp

primary
#2A5178
secondary
#AA7F54
accent
#9450D8
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #2A5178

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

Preview Lab → · Contrast checker → · Palette generator →

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