#2A5582#2A5582

#2A5582 is a dark, moderate cyan. Relative luminance 0.086; OKLCH L 44.1% C 0.089 H 251.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2A5582
RGBrgb(42, 85, 130)
HSLhsl(211, 51%, 34%)
HSVhsv(211, 68%, 51%)
CMYKcmyk(67.7%, 34.6%, 0%, 49%)
CIE-LABlab(35.20, 0.51, -29.68)
CIE-LCHlch(35.20, 29.69, 270.99°)
OKLaboklab(44.1% -0.0282 -0.0841)
OKLCHoklch(44.1% 0.089 251.4)
XYZxyz(8.2311, 8.6001, 22.3410)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5582 #82572A
analogous
#2A8182 #2A5582 #2B2A82
triadic
#2A5582 #822A55 #55822A
tetradic
#2A5582 #822A81 #82572A #2A822B
square
#2A5582 #822A81 #82572A #2A822B
split-complementary
#2A5582 #822B2A #81822A
monochromatic
#0C1925 #1B3754 #2A5582 #3973B0 #5C92CA

Accessibility & contrast

On white

7.72
#2A5582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2A5582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5582
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5582#FFFFFF#000000##FFFFFF
##2A55821.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415784
Deuteranopia (green-blind)
#354F81
Tritanopia (blue-blind)
#005F65
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5582;
/* rgb */ color: rgb(42, 85, 130);
/* oklch */ color: oklch(44.1% 0.089 251.4);
Tailwind
colors: {
  custom: {
    50: '#6d84a6',
    500: '#2a5582',
    950: '#000000',
  },
}
SCSS
$custom: #2a5582;
$custom-light: #6d84a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5582",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 130
  },
  "hsl": {
    "h": 210.682,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44098,
    "c": 0.08869,
    "h": 251.4
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#2A5582
secondary
#B08558
accent
#964DDB
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A5582

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

Preview Lab → · Contrast checker → · Palette generator →

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