#2A5280#2A5280

#2A5280 is a dark, moderate cyan. Relative luminance 0.081; OKLCH L 43.2% C 0.089 H 253.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2A5280
RGBrgb(42, 82, 128)
HSLhsl(212, 51%, 33%)
HSVhsv(212, 67%, 50%)
CMYKcmyk(67.2%, 35.9%, 0%, 49.8%)
CIE-LABlab(34.16, 1.70, -30.10)
CIE-LCHlch(34.16, 30.15, 273.24°)
OKLaboklab(43.24% -0.0255 -0.0853)
OKLCHoklch(43.24% 0.089 253.4)
XYZxyz(7.8670, 8.0846, 21.5638)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5280 #80582A
analogous
#2A7D80 #2A5280 #2D2A80
triadic
#2A5280 #802A52 #52802A
tetradic
#2A5280 #802A7D #80582A #2A802D
square
#2A5280 #802A7D #80582A #2A802D
split-complementary
#2A5280 #802D2A #7D802A
monochromatic
#0C1724 #1B3452 #2A5280 #3970AE #5B8EC9

Accessibility & contrast

On white

8.02
#2A5280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2A5280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5280
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5280#FFFFFF#000000##FFFFFF
##2A52801.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5582
Deuteranopia (green-blind)
#324D7F
Tritanopia (blue-blind)
#005D63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5280;
/* rgb */ color: rgb(42, 82, 128);
/* oklch */ color: oklch(43.2% 0.089 253.4);
Tailwind
colors: {
  custom: {
    50: '#6d82a5',
    500: '#2a5280',
    950: '#000000',
  },
}
SCSS
$custom: #2a5280;
$custom-light: #6d82a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5280",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 128
  },
  "hsl": {
    "h": 212.093,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43244,
    "c": 0.08905,
    "h": 253.4
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#2A5280
secondary
#AF8657
accent
#994EDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A5280

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

Preview Lab → · Contrast checker → · Palette generator →

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