#4A288D#4A288D

#4A288D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.157 H 292.9°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#4A288D
RGBrgb(74, 40, 141)
HSLhsl(260, 56%, 35%)
HSVhsv(260, 72%, 55%)
CMYKcmyk(47.5%, 71.6%, 0%, 44.7%)
CIE-LABlab(26.44, 39.70, -50.43)
CIE-LCHlch(26.44, 64.18, 308.21°)
OKLaboklab(38.33% 0.0611 -0.1445)
OKLCHoklch(38.33% 0.157 292.9)
XYZxyz(8.3892, 4.8962, 25.6972)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A288D #6B8D28
analogous
#28388D #4A288D #7C288D
triadic
#4A288D #8D4A28 #288D4A
tetradic
#4A288D #8D2838 #6B8D28 #288D7C
square
#4A288D #8D2838 #6B8D28 #288D7C
split-complementary
#4A288D #8D7C28 #388D28
monochromatic
#180D2E #311A5D #4A288D #6336BD #855ED1

Accessibility & contrast

On white

10.61
#4A288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4A288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A288D
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A288D#FFFFFF#000000##FFFFFF
##4A288D1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#364257
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a288d;
/* rgb */ color: rgb(74, 40, 141);
/* oklch */ color: oklch(38.3% 0.157 292.9);
Tailwind
colors: {
  custom: {
    50: '#8365af',
    500: '#4a288d',
    950: '#000000',
  },
}
SCSS
$custom: #4a288d;
$custom-light: #8365af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a288d",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 260.198,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38333,
    "c": 0.15684,
    "h": 292.9
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#4A288D
secondary
#98B75A
accent
#DF49AC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A288D

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

Preview Lab → · Contrast checker → · Palette generator →

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