#4A239D#4A239D

#4A239D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.181 H 289.9°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4A239D
RGBrgb(74, 35, 157)
HSLhsl(259, 64%, 38%)
HSVhsv(259, 78%, 62%)
CMYKcmyk(52.9%, 77.7%, 0%, 38.4%)
CIE-LABlab(26.99, 46.79, -59.36)
CIE-LCHlch(26.99, 75.58, 308.25°)
OKLaboklab(39.17% 0.0616 -0.1706)
OKLCHoklch(39.17% 0.181 289.9)
XYZxyz(9.5091, 5.0918, 32.3735)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A239D #769D23
analogous
#23399D #4A239D #87239D
triadic
#4A239D #9D4A23 #239D4A
tetradic
#4A239D #9D2339 #769D23 #239D87
square
#4A239D #9D2339 #769D23 #239D87
split-complementary
#4A239D #9D8723 #399D23
monochromatic
#1B0D39 #32186B #4A239D #622ECF #875FDB

Accessibility & contrast

On white

10.40
#4A239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4A239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A239D
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A239D#FFFFFF#000000##FFFFFF
##4A239D1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#2B455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a239d;
/* rgb */ color: rgb(74, 35, 157);
/* oklch */ color: oklch(39.2% 0.181 289.9);
Tailwind
colors: {
  custom: {
    50: '#8663bb',
    500: '#4a239d',
    950: '#000000',
  },
}
SCSS
$custom: #4a239d;
$custom-light: #8663bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a239d",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 259.18,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39174,
    "c": 0.18141,
    "h": 289.9
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A239D

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

Preview Lab → · Contrast checker → · Palette generator →

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