#4A237E#4A237E

#4A237E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.145 H 298.5°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4A237E
RGBrgb(74, 35, 126)
HSLhsl(266, 57%, 32%)
HSVhsv(266, 72%, 49%)
CMYKcmyk(41.3%, 72.2%, 0%, 50.6%)
CIE-LABlab(24.21, 38.16, -44.67)
CIE-LCHlch(24.21, 58.75, 310.50°)
OKLaboklab(36.35% 0.0691 -0.1275)
OKLCHoklch(36.35% 0.145 298.5)
XYZxyz(7.1900, 4.1642, 20.1596)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A237E #577E23
analogous
#232A7E #4A237E #78237E
triadic
#4A237E #7E4A23 #237E4A
tetradic
#4A237E #7E232A #577E23 #237E78
square
#4A237E #7E232A #577E23 #237E78
split-complementary
#4A237E #7E7823 #2A7E23
monochromatic
#12081E #2E164E #4A237E #6630AE #854ECE

Accessibility & contrast

On white

11.46
#4A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A237E
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A237E#FFFFFF#000000##FFFFFF
##4A237E1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#3D394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a237e;
/* rgb */ color: rgb(74, 35, 126);
/* oklch */ color: oklch(36.3% 0.145 298.5);
Tailwind
colors: {
  custom: {
    50: '#8161a4',
    500: '#4a237e',
    950: '#000000',
  },
}
SCSS
$custom: #4a237e;
$custom-light: #8161a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a237e",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 265.714,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36348,
    "c": 0.14504,
    "h": 298.5
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#4A237E
secondary
#86B04C
accent
#E0489F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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