#2A5087#2A5087

#2A5087 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.2% C 0.101 H 257.8°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2A5087
RGBrgb(42, 80, 135)
HSLhsl(215, 53%, 35%)
HSVhsv(215, 69%, 53%)
CMYKcmyk(68.9%, 40.7%, 0%, 47.1%)
CIE-LABlab(33.94, 5.64, -34.76)
CIE-LCHlch(33.94, 35.21, 279.22°)
OKLaboklab(43.2% -0.0215 -0.099)
OKLCHoklch(43.2% 0.101 257.8)
XYZxyz(8.1951, 7.9780, 24.0250)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5087 #87612A
analogous
#2A7E87 #2A5087 #332A87
triadic
#2A5087 #872A50 #50872A
tetradic
#2A5087 #872A7E #87612A #2A8733
square
#2A5087 #872A7E #87612A #2A8733
split-complementary
#2A5087 #87332A #7E872A
monochromatic
#0D192A #1B3458 #2A5087 #396CB6 #5E8CCD

Accessibility & contrast

On white

8.09
#2A5087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A5087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5087
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5087#FFFFFF#000000##FFFFFF
##2A50871.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375589
Deuteranopia (green-blind)
#294C86
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5087;
/* rgb */ color: rgb(42, 80, 135);
/* oklch */ color: oklch(43.2% 0.101 257.8);
Tailwind
colors: {
  custom: {
    50: '#6e80aa',
    500: '#2a5087',
    950: '#000000',
  },
}
SCSS
$custom: #2a5087;
$custom-light: #6e80aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5087",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 135
  },
  "hsl": {
    "h": 215.484,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43201,
    "c": 0.10128,
    "h": 257.8
  },
  "luminance": 0.07979
}

Semantic roles & 50–950 ramp

primary
#2A5087
secondary
#B38F5A
accent
#A14CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A5087

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

Preview Lab → · Contrast checker → · Palette generator →

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