#4D237E#4D237E

#4D237E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.146 H 300.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4D237E
RGBrgb(77, 35, 126)
HSLhsl(268, 57%, 32%)
HSVhsv(268, 72%, 49%)
CMYKcmyk(38.9%, 72.2%, 0%, 50.6%)
CIE-LABlab(24.60, 38.78, -44.02)
CIE-LCHlch(24.60, 58.66, 311.38°)
OKLaboklab(36.71% 0.0737 -0.1255)
OKLCHoklch(36.71% 0.146 300.4)
XYZxyz(7.4266, 4.2861, 20.1707)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D237E #547E23
analogous
#23277E #4D237E #7B237E
triadic
#4D237E #7E4D23 #237E4D
tetradic
#4D237E #7E2327 #547E23 #237E7B
square
#4D237E #7E2327 #547E23 #237E7B
split-complementary
#4D237E #7E7B23 #277E23
monochromatic
#12081E #30164E #4D237E #6A30AE #894ECE

Accessibility & contrast

On white

11.31
#4D237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D237E
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D237E#FFFFFF#000000##FFFFFF
##4D237E1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#42394E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d237e;
/* rgb */ color: rgb(77, 35, 126);
/* oklch */ color: oklch(36.7% 0.146 300.4);
Tailwind
colors: {
  custom: {
    50: '#8362a4',
    500: '#4d237e',
    950: '#000000',
  },
}
SCSS
$custom: #4d237e;
$custom-light: #8362a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d237e",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 267.692,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36712,
    "c": 0.14552,
    "h": 300.4
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#4D237E
secondary
#82B04C
accent
#E0489A
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D237E

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

Preview Lab → · Contrast checker → · Palette generator →

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