#2A2584#2A2584

#2A2584 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.152 H 276.9°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2A2584
RGBrgb(42, 37, 132)
HSLhsl(243, 56%, 33%)
HSVhsv(243, 72%, 52%)
CMYKcmyk(68.2%, 72%, 0%, 48.2%)
CIE-LABlab(21.87, 33.37, -52.40)
CIE-LCHlch(21.87, 62.12, 302.49°)
OKLaboklab(34.07% 0.0184 -0.1513)
OKLCHoklch(34.07% 0.152 276.9)
XYZxyz(5.7799, 3.4808, 22.1926)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2584 #7F8425
analogous
#254F84 #2A2584 #592584
triadic
#2A2584 #842A25 #25842A
tetradic
#2A2584 #84254F #7F8425 #258459
square
#2A2584 #84254F #7F8425 #258459
split-complementary
#2A2584 #845925 #4F8425
monochromatic
#0C0A24 #1B1854 #2A2584 #3932B4 #5B54CF

Accessibility & contrast

On white

12.38
#2A2584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A2584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2584
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2584#FFFFFF#000000##FFFFFF
##2A25841.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2584;
/* rgb */ color: rgb(42, 37, 132);
/* oklch */ color: oklch(34.1% 0.152 276.9);
Tailwind
colors: {
  custom: {
    50: '#7060a9',
    500: '#2a2584',
    950: '#000000',
  },
}
SCSS
$custom: #2a2584;
$custom-light: #7060a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2584",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 132
  },
  "hsl": {
    "h": 243.158,
    "s": 56.213,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34065,
    "c": 0.1524,
    "h": 276.9
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2584

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

Preview Lab → · Contrast checker → · Palette generator →

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