#4D238B#4D238B

#4D238B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.161 H 296.2°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4D238B
RGBrgb(77, 35, 139)
HSLhsl(264, 60%, 34%)
HSVhsv(264, 75%, 55%)
CMYKcmyk(44.6%, 74.8%, 0%, 45.5%)
CIE-LABlab(25.69, 42.29, -50.38)
CIE-LCHlch(25.69, 65.78, 310.01°)
OKLaboklab(37.83% 0.071 -0.1442)
OKLCHoklch(37.83% 0.161 296.2)
XYZxyz(8.3206, 4.6437, 24.8790)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D238B #618B23
analogous
#232D8B #4D238B #81238B
triadic
#4D238B #8B4D23 #238B4D
tetradic
#4D238B #8B232D #618B23 #238B81
square
#4D238B #8B232D #618B23 #238B81
split-complementary
#4D238B #8B8123 #2D8B23
monochromatic
#170A29 #32175A #4D238B #682FBC #8854D4

Accessibility & contrast

On white

10.89
#4D238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D238B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D238B#FFFFFF#000000##FFFFFF
##4D238B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#3C3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d238b;
/* rgb */ color: rgb(77, 35, 139);
/* oklch */ color: oklch(37.8% 0.161 296.2);
Tailwind
colors: {
  custom: {
    50: '#8562ae',
    500: '#4d238b',
    950: '#000000',
  },
}
SCSS
$custom: #4d238b;
$custom-light: #8562ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d238b",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 264.231,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37834,
    "c": 0.16073,
    "h": 296.2
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#4D238B
secondary
#8FB852
accent
#E345A3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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