#4D238E#4D238E

#4D238E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.164 H 295.3°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4D238E
RGBrgb(77, 35, 142)
HSLhsl(264, 60%, 35%)
HSVhsv(264, 75%, 56%)
CMYKcmyk(45.8%, 75.4%, 0%, 44.3%)
CIE-LABlab(25.96, 43.11, -51.82)
CIE-LCHlch(25.96, 67.41, 309.76°)
OKLaboklab(38.1% 0.0703 -0.1484)
OKLCHoklch(38.1% 0.164 295.3)
XYZxyz(8.5428, 4.7326, 26.0493)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D238E #648E23
analogous
#232F8E #4D238E #82238E
triadic
#4D238E #8E4D23 #238E4D
tetradic
#4D238E #8E232F #648E23 #238E82
square
#4D238E #8E232F #648E23 #238E82
split-complementary
#4D238E #8E8223 #2F8E23
monochromatic
#180B2C #32175D #4D238E #682FBF #8856D5

Accessibility & contrast

On white

10.79
#4D238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D238E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D238E#FFFFFF#000000##FFFFFF
##4D238E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#3B3F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d238e;
/* rgb */ color: rgb(77, 35, 142);
/* oklch */ color: oklch(38.1% 0.164 295.3);
Tailwind
colors: {
  custom: {
    50: '#8562b0',
    500: '#4d238e',
    950: '#000000',
  },
}
SCSS
$custom: #4d238e;
$custom-light: #8562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d238e",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 263.551,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38103,
    "c": 0.1642,
    "h": 295.3
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#4D238E
secondary
#91B953
accent
#E444A5
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4D238E

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

Preview Lab → · Contrast checker → · Palette generator →

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