#4A237C#4A237C

#4A237C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.143 H 299.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4A237C
RGBrgb(74, 35, 124)
HSLhsl(266, 56%, 31%)
HSVhsv(266, 72%, 49%)
CMYKcmyk(40.3%, 71.8%, 0%, 51.4%)
CIE-LABlab(24.04, 37.61, -43.67)
CIE-LCHlch(24.04, 57.63, 310.73°)
OKLaboklab(36.18% 0.0695 -0.1246)
OKLCHoklch(36.18% 0.143 299.2)
XYZxyz(7.0622, 4.1131, 19.4867)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A237C #557C23
analogous
#23287C #4A237C #76237C
triadic
#4A237C #7C4A23 #237C4A
tetradic
#4A237C #7C2328 #557C23 #237C76
square
#4A237C #7C2328 #557C23 #237C76
split-complementary
#4A237C #7C7623 #287C23
monochromatic
#11081D #2E164C #4A237C #6630AC #854DCD

Accessibility & contrast

On white

11.52
#4A237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A237C
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A237C#FFFFFF#000000##FFFFFF
##4A237C1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#3E384C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a237c;
/* rgb */ color: rgb(74, 35, 124);
/* oklch */ color: oklch(36.2% 0.143 299.2);
Tailwind
colors: {
  custom: {
    50: '#8161a3',
    500: '#4a237c',
    950: '#000000',
  },
}
SCSS
$custom: #4a237c;
$custom-light: #8161a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a237c",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 266.292,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36179,
    "c": 0.14265,
    "h": 299.2
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#4A237C
secondary
#83AF4C
accent
#DF499D
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A237C

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

Preview Lab → · Contrast checker → · Palette generator →

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