#2A5887#2A5887

#2A5887 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.1% C 0.092 H 251.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2A5887
RGBrgb(42, 88, 135)
HSLhsl(210, 53%, 35%)
HSVhsv(210, 69%, 53%)
CMYKcmyk(68.9%, 34.8%, 0%, 47.1%)
CIE-LABlab(36.40, 0.45, -30.85)
CIE-LCHlch(36.40, 30.85, 270.84°)
OKLaboklab(45.13% -0.0301 -0.0874)
OKLCHoklch(45.13% 0.092 251)
XYZxyz(8.8161, 9.2201, 24.2320)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5887 #87592A
analogous
#2A8687 #2A5887 #2B2A87
triadic
#2A5887 #872A58 #58872A
tetradic
#2A5887 #872A86 #87592A #2A872B
square
#2A5887 #872A86 #87592A #2A872B
split-complementary
#2A5887 #872B2A #86872A
monochromatic
#0D1B2A #1B3A58 #2A5887 #3976B6 #5E95CD

Accessibility & contrast

On white

7.38
#2A5887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2A5887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5887
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5887#FFFFFF#000000##FFFFFF
##2A58871.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435A89
Deuteranopia (green-blind)
#365286
Tritanopia (blue-blind)
#006369
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a5887;
/* rgb */ color: rgb(42, 88, 135);
/* oklch */ color: oklch(45.1% 0.092 251.0);
Tailwind
colors: {
  custom: {
    50: '#6e86aa',
    500: '#2a5887',
    950: '#000000',
  },
}
SCSS
$custom: #2a5887;
$custom-light: #6e86aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5887",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 135
  },
  "hsl": {
    "h": 210.323,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45127,
    "c": 0.09245,
    "h": 251
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A5887

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

Preview Lab → · Contrast checker → · Palette generator →

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