#4D237B#4D237B

#4D237B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.142 H 301.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4D237B
RGBrgb(77, 35, 123)
HSLhsl(269, 56%, 31%)
HSVhsv(269, 72%, 48%)
CMYKcmyk(37.4%, 71.5%, 0%, 51.8%)
CIE-LABlab(24.35, 37.97, -42.51)
CIE-LCHlch(24.35, 57.00, 311.77°)
OKLaboklab(36.46% 0.0742 -0.1211)
OKLCHoklch(36.46% 0.142 301.5)
XYZxyz(7.2359, 4.2099, 19.1664)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D237B #517B23
analogous
#23257B #4D237B #79237B
triadic
#4D237B #7B4D23 #237B4D
tetradic
#4D237B #7B2325 #517B23 #237B79
square
#4D237B #7B2325 #517B23 #237B79
split-complementary
#4D237B #7B7923 #257B23
monochromatic
#11081C #2F154B #4D237B #6B31AB #894CCC

Accessibility & contrast

On white

11.40
#4D237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4D237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D237B
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D237B#FFFFFF#000000##FFFFFF
##4D237B1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#43384C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d237b;
/* rgb */ color: rgb(77, 35, 123);
/* oklch */ color: oklch(36.5% 0.142 301.5);
Tailwind
colors: {
  custom: {
    50: '#8361a2',
    500: '#4d237b',
    950: '#000000',
  },
}
SCSS
$custom: #4d237b;
$custom-light: #8361a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d237b",
  "rgb": {
    "r": 77,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 268.636,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.14198,
    "h": 301.5
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#4D237B
secondary
#7FAE4C
accent
#DF4997
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D237B

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

Preview Lab → · Contrast checker → · Palette generator →

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