#4D237D#4D237D

#4D237D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.144 H 300.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4D237D
RGBrgb(77, 35, 125)
HSLhsl(268, 56%, 31%)
HSVhsv(268, 72%, 49%)
CMYKcmyk(38.4%, 72%, 0%, 51%)
CIE-LABlab(24.51, 38.51, -43.52)
CIE-LCHlch(24.51, 58.11, 311.50°)
OKLaboklab(36.63% 0.0739 -0.124)
OKLCHoklch(36.63% 0.144 300.8)
XYZxyz(7.3624, 4.2605, 19.8325)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D237D #537D23
analogous
#23267D #4D237D #7A237D
triadic
#4D237D #7D4D23 #237D4D
tetradic
#4D237D #7D2326 #537D23 #237D7A
square
#4D237D #7D2326 #537D23 #237D7A
split-complementary
#4D237D #7D7A23 #267D23
monochromatic
#12081D #30164D #4D237D #6A30AD #894DCD

Accessibility & contrast

On white

11.34
#4D237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D237D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D237D#FFFFFF#000000##FFFFFF
##4D237D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#42384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d237d;
/* rgb */ color: rgb(77, 35, 125);
/* oklch */ color: oklch(36.6% 0.144 300.8);
Tailwind
colors: {
  custom: {
    50: '#8361a3',
    500: '#4d237d',
    950: '#000000',
  },
}
SCSS
$custom: #4d237d;
$custom-light: #8361a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d237d",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 268,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36628,
    "c": 0.14434,
    "h": 300.8
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#4D237D
secondary
#81AF4C
accent
#E04899
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D237D

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

Preview Lab → · Contrast checker → · Palette generator →

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