#4A238A#4A238A

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

Color values

HEX#4A238A
RGBrgb(74, 35, 138)
HSLhsl(263, 60%, 34%)
HSVhsv(263, 75%, 54%)
CMYKcmyk(46.4%, 74.6%, 0%, 45.9%)
CIE-LABlab(25.24, 41.48, -50.52)
CIE-LCHlch(25.24, 65.37, 309.39°)
OKLaboklab(37.4% 0.0666 -0.1447)
OKLCHoklch(37.4% 0.159 294.7)
XYZxyz(8.0113, 4.4927, 24.4849)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A238A #638A23
analogous
#23308A #4A238A #7E238A
triadic
#4A238A #8A4A23 #238A4A
tetradic
#4A238A #8A2330 #638A23 #238A7E
square
#4A238A #8A2330 #638A23 #238A7E
split-complementary
#4A238A #8A7E23 #308A23
monochromatic
#160A28 #301759 #4A238A #642FBB #8454D4

Accessibility & contrast

On white

11.06
#4A238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4A238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A238A
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A238A#FFFFFF#000000##FFFFFF
##4A238A1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#383E54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a238a;
/* rgb */ color: rgb(74, 35, 138);
/* oklch */ color: oklch(37.4% 0.159 294.7);
Tailwind
colors: {
  custom: {
    50: '#8362ad',
    500: '#4a238a',
    950: '#000000',
  },
}
SCSS
$custom: #4a238a;
$custom-light: #8362ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4a238a",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 262.718,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.374,
    "c": 0.15931,
    "h": 294.7
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#4A238A
secondary
#91B751
accent
#E345A7
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A238A

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

Preview Lab → · Contrast checker → · Palette generator →

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