#4A237D#4A237D

#4A237D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.144 H 298.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4A237D
RGBrgb(74, 35, 125)
HSLhsl(266, 56%, 31%)
HSVhsv(266, 72%, 49%)
CMYKcmyk(40.8%, 72%, 0%, 51%)
CIE-LABlab(24.12, 37.88, -44.17)
CIE-LCHlch(24.12, 58.19, 310.62°)
OKLaboklab(36.26% 0.0693 -0.126)
OKLCHoklch(36.26% 0.144 298.8)
XYZxyz(7.1258, 4.1385, 19.8214)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A237D #567D23
analogous
#23297D #4A237D #77237D
triadic
#4A237D #7D4A23 #237D4A
tetradic
#4A237D #7D2329 #567D23 #237D77
square
#4A237D #7D2329 #567D23 #237D77
split-complementary
#4A237D #7D7723 #297D23
monochromatic
#11081D #2E164D #4A237D #6630AD #854DCD

Accessibility & contrast

On white

11.49
#4A237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A237D
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A237D#FFFFFF#000000##FFFFFF
##4A237D1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#3E394D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a237d;
/* rgb */ color: rgb(74, 35, 125);
/* oklch */ color: oklch(36.3% 0.144 298.8);
Tailwind
colors: {
  custom: {
    50: '#8161a3',
    500: '#4a237d',
    950: '#000000',
  },
}
SCSS
$custom: #4a237d;
$custom-light: #8161a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a237d",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 266,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36263,
    "c": 0.14385,
    "h": 298.8
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#4A237D
secondary
#85AF4C
accent
#E0489E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A237D

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

Preview Lab → · Contrast checker → · Palette generator →

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