#4A238B#4A238B

#4A238B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.160 H 294.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#4A238B
RGBrgb(74, 35, 139)
HSLhsl(263, 60%, 34%)
HSVhsv(263, 75%, 55%)
CMYKcmyk(46.8%, 74.8%, 0%, 45.5%)
CIE-LABlab(25.33, 41.76, -51.00)
CIE-LCHlch(25.33, 65.91, 309.31°)
OKLaboklab(37.49% 0.0664 -0.1461)
OKLCHoklch(37.49% 0.16 294.4)
XYZxyz(8.0840, 4.5218, 24.8679)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A238B #648B23
analogous
#23308B #4A238B #7E238B
triadic
#4A238B #8B4A23 #238B4A
tetradic
#4A238B #8B2330 #648B23 #238B7E
square
#4A238B #8B2330 #648B23 #238B7E
split-complementary
#4A238B #8B7E23 #308B23
monochromatic
#160A29 #30175A #4A238B #642FBC #8454D4

Accessibility & contrast

On white

11.03
#4A238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A238B
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A238B#FFFFFF#000000##FFFFFF
##4A238B1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#373E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a238b;
/* rgb */ color: rgb(74, 35, 139);
/* oklch */ color: oklch(37.5% 0.160 294.4);
Tailwind
colors: {
  custom: {
    50: '#8362ae',
    500: '#4a238b',
    950: '#000000',
  },
}
SCSS
$custom: #4a238b;
$custom-light: #8362ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a238b",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 262.5,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37491,
    "c": 0.16049,
    "h": 294.4
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#4A238B
secondary
#92B852
accent
#E345A8
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A238B

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

Preview Lab → · Contrast checker → · Palette generator →

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