#4A238D#4A238D

#4A238D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.163 H 293.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4A238D
RGBrgb(74, 35, 141)
HSLhsl(262, 60%, 35%)
HSVhsv(262, 75%, 55%)
CMYKcmyk(47.5%, 75.2%, 0%, 44.7%)
CIE-LABlab(25.51, 42.31, -51.95)
CIE-LCHlch(25.51, 67.00, 309.16°)
OKLaboklab(37.67% 0.0659 -0.1489)
OKLCHoklch(37.67% 0.163 293.9)
XYZxyz(8.2315, 4.5807, 25.6446)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A238D #668D23
analogous
#23318D #4A238D #7F238D
triadic
#4A238D #8D4A23 #238D4A
tetradic
#4A238D #8D2331 #668D23 #238D7F
square
#4A238D #8D2331 #668D23 #238D7F
split-complementary
#4A238D #8D7F23 #318D23
monochromatic
#170B2B #30175C #4A238D #642FBE #8455D5

Accessibility & contrast

On white

10.96
#4A238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A238D
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A238D#FFFFFF#000000##FFFFFF
##4A238D1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#363F56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a238d;
/* rgb */ color: rgb(74, 35, 141);
/* oklch */ color: oklch(37.7% 0.163 293.9);
Tailwind
colors: {
  custom: {
    50: '#8362af',
    500: '#4a238d',
    950: '#000000',
  },
}
SCSS
$custom: #4a238d;
$custom-light: #8362af;
$custom-dark: #000000;
JSON
{
  "hex": "#4a238d",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 262.075,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37672,
    "c": 0.16284,
    "h": 293.9
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#4A238D
secondary
#93B953
accent
#E344A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A238D

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

Preview Lab → · Contrast checker → · Palette generator →

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