#4D308B#4D308B

#4D308B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.144 H 293.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4D308B
RGBrgb(77, 48, 139)
HSLhsl(259, 49%, 37%)
HSVhsv(259, 65%, 55%)
CMYKcmyk(44.6%, 65.5%, 0%, 45.5%)
CIE-LABlab(28.26, 35.21, -46.20)
CIE-LCHlch(28.26, 58.09, 307.31°)
OKLaboklab(39.67% 0.0572 -0.132)
OKLCHoklch(39.67% 0.144 293.4)
XYZxyz(8.7765, 5.5555, 25.0310)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D308B #6E8B30
analogous
#30418B #4D308B #7B308B
triadic
#4D308B #8B4D30 #308B4D
tetradic
#4D308B #8B3041 #6E8B30 #308B7B
square
#4D308B #8B3041 #6E8B30 #308B7B
split-complementary
#4D308B #8B7B30 #418B30
monochromatic
#1B1130 #34205E #4D308B #6640B8 #896ACC

Accessibility & contrast

On white

9.95
#4D308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D308B
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D308B#FFFFFF#000000##FFFFFF
##4D308B1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#3C4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d308b;
/* rgb */ color: rgb(77, 48, 139);
/* oklch */ color: oklch(39.7% 0.144 293.4);
Tailwind
colors: {
  custom: {
    50: '#846aae',
    500: '#4d308b',
    950: '#000000',
  },
}
SCSS
$custom: #4d308b;
$custom-light: #846aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d308b",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 259.121,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39672,
    "c": 0.14381,
    "h": 293.4
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#4D308B
secondary
#9AB364
accent
#D850AD
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D308B

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

Preview Lab → · Contrast checker → · Palette generator →

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