#2A5786#2A5786

#2A5786 is a dark, moderate cyan. Relative luminance 0.090; OKLCH L 44.8% C 0.092 H 251.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#2A5786
RGBrgb(42, 87, 134)
HSLhsl(211, 52%, 35%)
HSVhsv(211, 69%, 53%)
CMYKcmyk(68.7%, 35.1%, 0%, 47.5%)
CIE-LABlab(36.04, 0.72, -30.81)
CIE-LCHlch(36.04, 30.82, 271.34°)
OKLaboklab(44.82% -0.0293 -0.0873)
OKLCHoklch(44.82% 0.092 251.5)
XYZxyz(8.6645, 9.0290, 23.8358)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5786 #86592A
analogous
#2A8586 #2A5786 #2B2A86
triadic
#2A5786 #862A57 #57862A
tetradic
#2A5786 #862A85 #86592A #2A862B
square
#2A5786 #862A85 #86592A #2A862B
split-complementary
#2A5786 #862B2A #85862A
monochromatic
#0D1A29 #1B3957 #2A5786 #3975B5 #5E94CD

Accessibility & contrast

On white

7.48
#2A5786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A5786
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5786#FFFFFF#000000##FFFFFF
##2A57861.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a5786;
/* rgb */ color: rgb(42, 87, 134);
/* oklch */ color: oklch(44.8% 0.092 251.5);
Tailwind
colors: {
  custom: {
    50: '#6e86a9',
    500: '#2a5786',
    950: '#000000',
  },
}
SCSS
$custom: #2a5786;
$custom-light: #6e86a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5786",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 134
  },
  "hsl": {
    "h": 210.652,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44824,
    "c": 0.09211,
    "h": 251.5
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#2A5786
secondary
#B2875A
accent
#954CDC
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #2A5786

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

Preview Lab → · Contrast checker → · Palette generator →

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