#4A288B#4A288B

#4A288B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.154 H 293.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4A288B
RGBrgb(74, 40, 139)
HSLhsl(261, 55%, 35%)
HSVhsv(261, 71%, 55%)
CMYKcmyk(46.8%, 71.2%, 0%, 45.5%)
CIE-LABlab(26.27, 39.13, -49.47)
CIE-LCHlch(26.27, 63.07, 308.34°)
OKLaboklab(38.16% 0.0615 -0.1416)
OKLCHoklch(38.16% 0.154 293.5)
XYZxyz(8.2418, 4.8373, 24.9205)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A288B #698B28
analogous
#28388B #4A288B #7B288B
triadic
#4A288B #8B4A28 #288B4A
tetradic
#4A288B #8B2838 #698B28 #288B7B
square
#4A288B #8B2838 #698B28 #288B7B
split-complementary
#4A288B #8B7B28 #388B28
monochromatic
#170D2C #311A5B #4A288B #6336BB #855DD0

Accessibility & contrast

On white

10.67
#4A288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4A288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A288B
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A288B#FFFFFF#000000##FFFFFF
##4A288B1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#374156
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a288b;
/* rgb */ color: rgb(74, 40, 139);
/* oklch */ color: oklch(38.2% 0.154 293.5);
Tailwind
colors: {
  custom: {
    50: '#8365ae',
    500: '#4a288b',
    950: '#000000',
  },
}
SCSS
$custom: #4a288b;
$custom-light: #8365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a288b",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 260.606,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38158,
    "c": 0.15439,
    "h": 293.5
  },
  "luminance": 0.04838
}

Semantic roles & 50–950 ramp

primary
#4A288B
secondary
#96B659
accent
#DF49AB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A288B

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

Preview Lab → · Contrast checker → · Palette generator →

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