#2A2587#2A2587

#2A2587 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.156 H 276.6°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2A2587
RGBrgb(42, 37, 135)
HSLhsl(243, 57%, 34%)
HSVhsv(243, 73%, 53%)
CMYKcmyk(68.9%, 72.6%, 0%, 47.1%)
CIE-LABlab(22.17, 34.41, -53.79)
CIE-LCHlch(22.17, 63.85, 302.61°)
OKLaboklab(34.37% 0.0178 -0.1554)
OKLCHoklch(34.37% 0.156 276.6)
XYZxyz(5.9882, 3.5641, 23.2893)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2587 #828725
analogous
#255187 #2A2587 #5B2587
triadic
#2A2587 #872A25 #25872A
tetradic
#2A2587 #872551 #828725 #25875B
square
#2A2587 #872551 #828725 #25875B
split-complementary
#2A2587 #875B25 #518725
monochromatic
#0C0B27 #1B1857 #2A2587 #3932B7 #5C56D1

Accessibility & contrast

On white

12.26
#2A2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2587
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2587#FFFFFF#000000##FFFFFF
##2A25871.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2587;
/* rgb */ color: rgb(42, 37, 135);
/* oklch */ color: oklch(34.4% 0.156 276.6);
Tailwind
colors: {
  custom: {
    50: '#7161ab',
    500: '#2a2587',
    950: '#000000',
  },
}
SCSS
$custom: #2a2587;
$custom-light: #7161ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2587",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 243.061,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34371,
    "c": 0.15638,
    "h": 276.6
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#2A2587
secondary
#B0B553
accent
#E048D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A2587

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

Preview Lab → · Contrast checker → · Palette generator →

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