#4A237F#4A237F

#4A237F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.146 H 298.1°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#4A237F
RGBrgb(74, 35, 127)
HSLhsl(265, 57%, 32%)
HSVhsv(265, 72%, 50%)
CMYKcmyk(41.7%, 72.4%, 0%, 50.2%)
CIE-LABlab(24.29, 38.43, -45.17)
CIE-LCHlch(24.29, 59.30, 310.40°)
OKLaboklab(36.43% 0.069 -0.129)
OKLCHoklch(36.43% 0.146 298.1)
XYZxyz(7.2549, 4.1901, 20.5011)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A237F #587F23
analogous
#232A7F #4A237F #78237F
triadic
#4A237F #7F4A23 #237F4A
tetradic
#4A237F #7F232A #587F23 #237F78
square
#4A237F #7F232A #587F23 #237F78
split-complementary
#4A237F #7F7823 #2A7F23
monochromatic
#12091F #2E164F #4A237F #6630AF #844ECE

Accessibility & contrast

On white

11.43
#4A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4A237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A237F
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A237F#FFFFFF#000000##FFFFFF
##4A237F1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#3D394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a237f;
/* rgb */ color: rgb(74, 35, 127);
/* oklch */ color: oklch(36.4% 0.146 298.1);
Tailwind
colors: {
  custom: {
    50: '#8261a5',
    500: '#4a237f',
    950: '#000000',
  },
}
SCSS
$custom: #4a237f;
$custom-light: #8261a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a237f",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 265.435,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36434,
    "c": 0.14624,
    "h": 298.1
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#4A237F
secondary
#87B14C
accent
#E0489F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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