#4C237B#4C237B

#4C237B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.142 H 300.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4C237B
RGBrgb(76, 35, 123)
HSLhsl(268, 56%, 31%)
HSVhsv(268, 72%, 48%)
CMYKcmyk(38.2%, 71.5%, 0%, 51.8%)
CIE-LABlab(24.22, 37.76, -42.73)
CIE-LCHlch(24.22, 57.03, 311.46°)
OKLaboklab(36.34% 0.0727 -0.1217)
OKLCHoklch(36.34% 0.142 300.8)
XYZxyz(7.1558, 4.1686, 19.1627)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C237B #527B23
analogous
#23267B #4C237B #78237B
triadic
#4C237B #7B4C23 #237B4C
tetradic
#4C237B #7B2326 #527B23 #237B78
square
#4C237B #7B2326 #527B23 #237B78
split-complementary
#4C237B #7B7823 #267B23
monochromatic
#11081C #2F154B #4C237B #6931AB #884CCC

Accessibility & contrast

On white

11.45
#4C237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C237B
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C237B#FFFFFF#000000##FFFFFF
##4C237B1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#42384C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c237b;
/* rgb */ color: rgb(76, 35, 123);
/* oklch */ color: oklch(36.3% 0.142 300.8);
Tailwind
colors: {
  custom: {
    50: '#8261a2',
    500: '#4c237b',
    950: '#000000',
  },
}
SCSS
$custom: #4c237b;
$custom-light: #8261a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c237b",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 267.955,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36339,
    "c": 0.14179,
    "h": 300.8
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#4C237B
secondary
#80AE4C
accent
#DF4999
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C237B

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

Preview Lab → · Contrast checker → · Palette generator →

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