#4A239E#4A239E

#4A239E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.183 H 289.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4A239E
RGBrgb(74, 35, 158)
HSLhsl(259, 64%, 38%)
HSVhsv(259, 78%, 62%)
CMYKcmyk(53.2%, 77.8%, 0%, 38%)
CIE-LABlab(27.09, 47.07, -59.81)
CIE-LCHlch(27.09, 76.11, 308.20°)
OKLaboklab(39.27% 0.0613 -0.1719)
OKLCHoklch(39.27% 0.183 289.6)
XYZxyz(9.5948, 5.1261, 32.8250)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A239E #779E23
analogous
#233A9E #4A239E #87239E
triadic
#4A239E #9E4A23 #239E4A
tetradic
#4A239E #9E233A #779E23 #239E87
square
#4A239E #9E233A #779E23 #239E87
split-complementary
#4A239E #9E8723 #3A9E23
monochromatic
#1B0D3A #33186C #4A239E #612ED0 #8760DC

Accessibility & contrast

On white

10.37
#4A239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A239E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A239E#FFFFFF#000000##FFFFFF
##4A239E1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#2A4660
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a239e;
/* rgb */ color: rgb(74, 35, 158);
/* oklch */ color: oklch(39.3% 0.183 289.6);
Tailwind
colors: {
  custom: {
    50: '#8663bc',
    500: '#4a239e',
    950: '#000000',
  },
}
SCSS
$custom: #4a239e;
$custom-light: #8663bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a239e",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 259.024,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39271,
    "c": 0.18255,
    "h": 289.6
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#4A239E
secondary
#A1C15C
accent
#E741B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A239E

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

Preview Lab → · Contrast checker → · Palette generator →

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