#4C237E#4C237E

#4C237E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.145 H 299.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4C237E
RGBrgb(76, 35, 126)
HSLhsl(267, 57%, 32%)
HSVhsv(267, 72%, 49%)
CMYKcmyk(39.7%, 72.2%, 0%, 50.6%)
CIE-LABlab(24.46, 38.57, -44.24)
CIE-LCHlch(24.46, 58.69, 311.08°)
OKLaboklab(36.59% 0.0722 -0.1262)
OKLCHoklch(36.59% 0.145 299.8)
XYZxyz(7.3465, 4.2448, 20.1669)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C237E #557E23
analogous
#23287E #4C237E #7A237E
triadic
#4C237E #7E4C23 #237E4C
tetradic
#4C237E #7E2328 #557E23 #237E7A
square
#4C237E #7E2328 #557E23 #237E7A
split-complementary
#4C237E #7E7A23 #287E23
monochromatic
#12081E #2F164E #4C237E #6930AE #874ECE

Accessibility & contrast

On white

11.36
#4C237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C237E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C237E#FFFFFF#000000##FFFFFF
##4C237E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#41394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c237e;
/* rgb */ color: rgb(76, 35, 126);
/* oklch */ color: oklch(36.6% 0.145 299.8);
Tailwind
colors: {
  custom: {
    50: '#8361a4',
    500: '#4c237e',
    950: '#000000',
  },
}
SCSS
$custom: #4c237e;
$custom-light: #8361a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c237e",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 267.033,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3659,
    "c": 0.14535,
    "h": 299.8
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#4C237E
secondary
#83B04C
accent
#E0489B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C237E

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

Preview Lab → · Contrast checker → · Palette generator →

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