#4D30A2#4D30A2

#4D30A2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.173 H 288.1°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4D30A2
RGBrgb(77, 48, 162)
HSLhsl(255, 54%, 41%)
HSVhsv(255, 70%, 64%)
CMYKcmyk(52.5%, 70.4%, 0%, 36.5%)
CIE-LABlab(30.16, 42.00, -57.20)
CIE-LCHlch(30.16, 70.97, 306.29°)
OKLaboklab(41.63% 0.0538 -0.1643)
OKLCHoklch(41.63% 0.173 288.1)
XYZxyz(10.6372, 6.2998, 34.8309)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30A2 #85A230
analogous
#304CA2 #4D30A2 #8630A2
triadic
#4D30A2 #A24D30 #30A24D
tetradic
#4D30A2 #A2304C #85A230 #30A286
square
#4D30A2 #A2304C #85A230 #30A286
split-complementary
#4D30A2 #A28630 #4CA230
monochromatic
#201444 #372273 #4D30A2 #6847C8 #8F76D6

Accessibility & contrast

On white

9.29
#4D30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4D30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30A2
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30A2#FFFFFF#000000##FFFFFF
##4D30A21.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#2D4D65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d30a2;
/* rgb */ color: rgb(77, 48, 162);
/* oklch */ color: oklch(41.6% 0.173 288.1);
Tailwind
colors: {
  custom: {
    50: '#876bbe',
    500: '#4d30a2',
    950: '#000000',
  },
}
SCSS
$custom: #4d30a2;
$custom-light: #876bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30a2",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 255.263,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41625,
    "c": 0.17288,
    "h": 288.1
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#4D30A2
secondary
#AABE6F
accent
#DE4AB8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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