#2A5387#2A5387

#2A5387 is a dark, moderate cyan. Relative luminance 0.084; OKLCH L 43.9% C 0.098 H 255.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2A5387
RGBrgb(42, 83, 135)
HSLhsl(214, 53%, 35%)
HSVhsv(214, 69%, 53%)
CMYKcmyk(68.9%, 38.5%, 0%, 47.1%)
CIE-LABlab(34.86, 3.68, -33.30)
CIE-LCHlch(34.86, 33.50, 276.30°)
OKLaboklab(43.92% -0.0247 -0.0946)
OKLCHoklch(43.92% 0.098 255.4)
XYZxyz(8.4197, 8.4272, 24.0999)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5387 #875E2A
analogous
#2A8287 #2A5387 #2F2A87
triadic
#2A5387 #872A53 #53872A
tetradic
#2A5387 #872A82 #875E2A #2A872F
square
#2A5387 #872A82 #875E2A #2A872F
split-complementary
#2A5387 #872F2A #82872A
monochromatic
#0D1A2A #1B3658 #2A5387 #3970B6 #5E8FCD

Accessibility & contrast

On white

7.82
#2A5387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2A5387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5387
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5387#FFFFFF#000000##FFFFFF
##2A53871.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5789
Deuteranopia (green-blind)
#2E4E86
Tritanopia (blue-blind)
#005F66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5387;
/* rgb */ color: rgb(42, 83, 135);
/* oklch */ color: oklch(43.9% 0.098 255.4);
Tailwind
colors: {
  custom: {
    50: '#6e83aa',
    500: '#2a5387',
    950: '#000000',
  },
}
SCSS
$custom: #2a5387;
$custom-light: #6e83aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5387",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 135
  },
  "hsl": {
    "h": 213.548,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43917,
    "c": 0.09781,
    "h": 255.4
  },
  "luminance": 0.08428
}

Semantic roles & 50–950 ramp

primary
#2A5387
secondary
#B38C5A
accent
#9C4CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A5387

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

Preview Lab → · Contrast checker → · Palette generator →

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