#4D30AF#4D30AF

#4D30AF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.189 H 285.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4D30AF
RGBrgb(77, 48, 175)
HSLhsl(254, 57%, 44%)
HSVhsv(254, 73%, 69%)
CMYKcmyk(56%, 72.6%, 0%, 31.4%)
CIE-LABlab(31.32, 45.86, -63.12)
CIE-LCHlch(31.32, 78.02, 306.00°)
OKLaboklab(42.81% 0.0512 -0.1816)
OKLCHoklch(42.81% 0.189 285.8)
XYZxyz(11.8531, 6.7862, 41.2344)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30AF #92AF30
analogous
#3052AF #4D30AF #8C30AF
triadic
#4D30AF #AF4D30 #30AF4D
tetradic
#4D30AF #AF3052 #92AF30 #30AF8C
square
#4D30AF #AF3052 #92AF30 #30AF8C
split-complementary
#4D30AF #AF8C30 #52AF30
monochromatic
#23164F #38237F #4D30AF #6B4ECE #937EDC

Accessibility & contrast

On white

8.91
#4D30AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4D30AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30AF
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30AF#FFFFFF#000000##FFFFFF
##4D30AF1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#20526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d30af;
/* rgb */ color: rgb(77, 48, 175);
/* oklch */ color: oklch(42.8% 0.189 285.8);
Tailwind
colors: {
  custom: {
    50: '#896bc8',
    500: '#4d30af',
    950: '#000000',
  },
}
SCSS
$custom: #4d30af;
$custom-light: #896bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30af",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 253.701,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.18872,
    "h": 285.8
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

primary
#4D30AF
secondary
#B3C476
accent
#E048BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D30AF

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

Preview Lab → · Contrast checker → · Palette generator →

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