#4A2587#4A2587

#4A2587 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.153 H 295.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4A2587
RGBrgb(74, 37, 135)
HSLhsl(263, 57%, 34%)
HSVhsv(263, 73%, 53%)
CMYKcmyk(45.2%, 72.6%, 0%, 47.1%)
CIE-LABlab(25.35, 39.60, -48.47)
CIE-LCHlch(25.35, 62.59, 309.25°)
OKLaboklab(37.4% 0.0653 -0.1387)
OKLCHoklch(37.4% 0.153 295.2)
XYZxyz(7.8576, 4.5281, 23.3770)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2587 #628725
analogous
#253187 #4A2587 #7B2587
triadic
#4A2587 #874A25 #25874A
tetradic
#4A2587 #872531 #628725 #25877B
square
#4A2587 #872531 #628725 #25877B
split-complementary
#4A2587 #877B25 #318725
monochromatic
#150B27 #301857 #4A2587 #6432B7 #8456D1

Accessibility & contrast

On white

11.02
#4A2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2587
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2587#FFFFFF#000000##FFFFFF
##4A25871.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#393E53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a2587;
/* rgb */ color: rgb(74, 37, 135);
/* oklch */ color: oklch(37.4% 0.153 295.2);
Tailwind
colors: {
  custom: {
    50: '#8263ab',
    500: '#4a2587',
    950: '#000000',
  },
}
SCSS
$custom: #4a2587;
$custom-light: #8263ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2587",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 262.653,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.1533,
    "h": 295.2
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#4A2587
secondary
#90B553
accent
#E048A7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A2587

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

Preview Lab → · Contrast checker → · Palette generator →

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