#2A5787#2A5787

#2A5787 is a dark, moderate cyan. Relative luminance 0.091; OKLCH L 44.9% C 0.093 H 251.9°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2A5787
RGBrgb(42, 87, 135)
HSLhsl(211, 53%, 35%)
HSVhsv(211, 69%, 53%)
CMYKcmyk(68.9%, 35.6%, 0%, 47.1%)
CIE-LABlab(36.09, 1.09, -31.34)
CIE-LCHlch(36.09, 31.36, 272.00°)
OKLaboklab(44.88% -0.029 -0.0889)
OKLCHoklch(44.88% 0.093 251.9)
XYZxyz(8.7346, 9.0570, 24.2048)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5787 #875A2A
analogous
#2A8587 #2A5787 #2C2A87
triadic
#2A5787 #872A57 #57872A
tetradic
#2A5787 #872A85 #875A2A #2A872C
square
#2A5787 #872A85 #875A2A #2A872C
split-complementary
#2A5787 #872C2A #85872A
monochromatic
#0D1B2A #1B3958 #2A5787 #3975B6 #5E94CD

Accessibility & contrast

On white

7.47
#2A5787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2A5787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5787
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5787#FFFFFF#000000##FFFFFF
##2A57871.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425A89
Deuteranopia (green-blind)
#355186
Tritanopia (blue-blind)
#006268
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a5787;
/* rgb */ color: rgb(42, 87, 135);
/* oklch */ color: oklch(44.9% 0.093 251.9);
Tailwind
colors: {
  custom: {
    50: '#6e86aa',
    500: '#2a5787',
    950: '#000000',
  },
}
SCSS
$custom: #2a5787;
$custom-light: #6e86aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5787",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 135
  },
  "hsl": {
    "h": 210.968,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44884,
    "c": 0.09349,
    "h": 251.9
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#2A5787
secondary
#B3885A
accent
#964CDC
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2A5787

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

Preview Lab → · Contrast checker → · Palette generator →

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