#4A2A8E#4A2A8E

#4A2A8E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.156 H 292.2°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4A2A8E
RGBrgb(74, 42, 142)
HSLhsl(259, 54%, 36%)
HSVhsv(259, 70%, 56%)
CMYKcmyk(47.9%, 70.4%, 0%, 44.3%)
CIE-LABlab(26.92, 38.90, -50.26)
CIE-LCHlch(26.92, 63.56, 307.73°)
OKLaboklab(38.7% 0.0589 -0.144)
OKLCHoklch(38.7% 0.156 292.2)
XYZxyz(8.5331, 5.0645, 26.1139)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A8E #6E8E2A
analogous
#2A3C8E #4A2A8E #7C2A8E
triadic
#4A2A8E #8E4A2A #2A8E4A
tetradic
#4A2A8E #8E2A3C #6E8E2A #2A8E7C
square
#4A2A8E #8E2A3C #6E8E2A #2A8E7C
split-complementary
#4A2A8E #8E7C2A #3C8E2A
monochromatic
#190E30 #311C5F #4A2A8E #6338BD #8562D1

Accessibility & contrast

On white

10.43
#4A2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4A2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A8E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A8E#FFFFFF#000000##FFFFFF
##4A2A8E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#354358
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a2a8e;
/* rgb */ color: rgb(74, 42, 142);
/* oklch */ color: oklch(38.7% 0.156 292.2);
Tailwind
colors: {
  custom: {
    50: '#8366b0',
    500: '#4a2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a8e;
$custom-light: #8366b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a8e",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 259.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38703,
    "c": 0.15556,
    "h": 292.2
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

primary
#4A2A8E
secondary
#9AB65D
accent
#DE4AAE
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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