#2A5581#2A5581

#2A5581 is a dark, moderate cyan. Relative luminance 0.086; OKLCH L 44.0% C 0.087 H 250.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2A5581
RGBrgb(42, 85, 129)
HSLhsl(210, 51%, 34%)
HSVhsv(210, 67%, 51%)
CMYKcmyk(67.4%, 34.1%, 0%, 49.4%)
CIE-LABlab(35.15, 0.14, -29.15)
CIE-LCHlch(35.15, 29.15, 270.28°)
OKLaboklab(44.04% -0.0285 -0.0825)
OKLCHoklch(44.04% 0.087 250.9)
XYZxyz(8.1643, 8.5734, 21.9892)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5581 #81562A
analogous
#2A8081 #2A5581 #2A2A81
triadic
#2A5581 #812A55 #55812A
tetradic
#2A5581 #812A80 #81562A #2A812A
square
#2A5581 #812A80 #81562A #2A812A
split-complementary
#2A5581 #812A2A #80812A
monochromatic
#0C1825 #1B3753 #2A5581 #3973AF #5C92CA

Accessibility & contrast

On white

7.74
#2A5581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A5581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5581
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5581#FFFFFF#000000##FFFFFF
##2A55811.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425783
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#005F65
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5581;
/* rgb */ color: rgb(42, 85, 129);
/* oklch */ color: oklch(44.0% 0.087 250.9);
Tailwind
colors: {
  custom: {
    50: '#6d84a6',
    500: '#2a5581',
    950: '#000000',
  },
}
SCSS
$custom: #2a5581;
$custom-light: #6d84a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5581",
  "rgb": {
    "r": 42,
    "g": 85,
    "b": 129
  },
  "hsl": {
    "h": 210.345,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44039,
    "c": 0.08732,
    "h": 250.9
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#2A5581
secondary
#AF8457
accent
#954DDA
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2A5581

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

Preview Lab → · Contrast checker → · Palette generator →

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