#4A288A#4A288A

#4A288A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.153 H 293.7°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4A288A
RGBrgb(74, 40, 138)
HSLhsl(261, 55%, 35%)
HSVhsv(261, 71%, 54%)
CMYKcmyk(46.4%, 71%, 0%, 45.9%)
CIE-LABlab(26.18, 38.84, -48.98)
CIE-LCHlch(26.18, 62.51, 308.41°)
OKLaboklab(38.07% 0.0616 -0.1402)
OKLCHoklch(38.07% 0.153 293.7)
XYZxyz(8.1690, 4.8082, 24.5375)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A288A #688A28
analogous
#28378A #4A288A #7B288A
triadic
#4A288A #8A4A28 #288A4A
tetradic
#4A288A #8A2837 #688A28 #288A7B
square
#4A288A #8A2837 #688A28 #288A7B
split-complementary
#4A288A #8A7B28 #378A28
monochromatic
#170C2B #311A5B #4A288A #6336B9 #855DD0

Accessibility & contrast

On white

10.71
#4A288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4A288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A288A
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A288A#FFFFFF#000000##FFFFFF
##4A288A1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#384056
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a288a;
/* rgb */ color: rgb(74, 40, 138);
/* oklch */ color: oklch(38.1% 0.153 293.7);
Tailwind
colors: {
  custom: {
    50: '#8365ad',
    500: '#4a288a',
    950: '#000000',
  },
}
SCSS
$custom: #4a288a;
$custom-light: #8365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a288a",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 260.816,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38071,
    "c": 0.15316,
    "h": 293.7
  },
  "luminance": 0.04808
}

Semantic roles & 50–950 ramp

primary
#4A288A
secondary
#95B559
accent
#DE49AB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A288A

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

Preview Lab → · Contrast checker → · Palette generator →

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