#2A5782#2A5782

#2A5782 is a dark, moderate cyan. Relative luminance 0.089; OKLCH L 44.6% C 0.087 H 249.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2A5782
RGBrgb(42, 87, 130)
HSLhsl(209, 51%, 34%)
HSVhsv(209, 68%, 51%)
CMYKcmyk(67.7%, 33.1%, 0%, 49%)
CIE-LABlab(35.83, -0.77, -28.70)
CIE-LCHlch(35.83, 28.71, 268.47°)
OKLaboklab(44.59% -0.0305 -0.0812)
OKLCHoklch(44.59% 0.087 249.4)
XYZxyz(8.3908, 8.9195, 22.3942)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5782 #82552A
analogous
#2A8281 #2A5782 #2A2B82
triadic
#2A5782 #822A57 #57822A
tetradic
#2A5782 #812A82 #82552A #2B822A
square
#2A5782 #812A82 #82552A #2B822A
split-complementary
#2A5782 #822A2B #82812A
monochromatic
#0C1925 #1B3854 #2A5782 #3976B0 #5C94CA

Accessibility & contrast

On white

7.54
#2A5782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A5782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5782
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5782#FFFFFF#000000##FFFFFF
##2A57821.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445984
Deuteranopia (green-blind)
#385081
Tritanopia (blue-blind)
#006166
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5782;
/* rgb */ color: rgb(42, 87, 130);
/* oklch */ color: oklch(44.6% 0.087 249.4);
Tailwind
colors: {
  custom: {
    50: '#6d86a6',
    500: '#2a5782',
    950: '#000000',
  },
}
SCSS
$custom: #2a5782;
$custom-light: #6d86a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5782",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 130
  },
  "hsl": {
    "h": 209.318,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44589,
    "c": 0.0867,
    "h": 249.4
  },
  "luminance": 0.0892
}

Semantic roles & 50–950 ramp

primary
#2A5782
secondary
#B08358
accent
#924DDB
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080B0F
muted
#7B7C7F

Preview Lab

Preview with #2A5782

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

Preview Lab → · Contrast checker → · Palette generator →

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