#2A5287#2A5287

#2A5287 is a dark, moderate cyan. Relative luminance 0.083; OKLCH L 43.7% C 0.099 H 256.2°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2A5287
RGBrgb(42, 82, 135)
HSLhsl(214, 53%, 35%)
HSVhsv(214, 69%, 53%)
CMYKcmyk(68.9%, 39.3%, 0%, 47.1%)
CIE-LABlab(34.55, 4.33, -33.78)
CIE-LCHlch(34.55, 34.06, 277.30°)
OKLaboklab(43.68% -0.0236 -0.0961)
OKLCHoklch(43.68% 0.099 256.2)
XYZxyz(8.3437, 8.2753, 24.0745)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5287 #875F2A
analogous
#2A8087 #2A5287 #312A87
triadic
#2A5287 #872A52 #52872A
tetradic
#2A5287 #872A80 #875F2A #2A8731
square
#2A5287 #872A80 #875F2A #2A8731
split-complementary
#2A5287 #87312A #80872A
monochromatic
#0D192A #1B3658 #2A5287 #396EB6 #5E8ECD

Accessibility & contrast

On white

7.91
#2A5287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2A5287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5287
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5287#FFFFFF#000000##FFFFFF
##2A52871.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5689
Deuteranopia (green-blind)
#2D4D86
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5287;
/* rgb */ color: rgb(42, 82, 135);
/* oklch */ color: oklch(43.7% 0.099 256.2);
Tailwind
colors: {
  custom: {
    50: '#6e82aa',
    500: '#2a5287',
    950: '#000000',
  },
}
SCSS
$custom: #2a5287;
$custom-light: #6e82aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5287",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 135
  },
  "hsl": {
    "h": 214.194,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43678,
    "c": 0.09895,
    "h": 256.2
  },
  "luminance": 0.08276
}

Semantic roles & 50–950 ramp

primary
#2A5287
secondary
#B38D5A
accent
#9E4CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A5287

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

Preview Lab → · Contrast checker → · Palette generator →

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