#4D30B5#4D30B5

#4D30B5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.196 H 284.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4D30B5
RGBrgb(77, 48, 181)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(57.5%, 73.5%, 0%, 29%)
CIE-LABlab(31.87, 47.64, -65.79)
CIE-LCHlch(31.87, 81.22, 305.91°)
OKLaboklab(43.37% 0.0499 -0.1894)
OKLCHoklch(43.37% 0.196 284.8)
XYZxyz(12.4555, 7.0271, 44.4071)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30B5 #98B530
analogous
#3055B5 #4D30B5 #9030B5
triadic
#4D30B5 #B54D30 #30B54D
tetradic
#4D30B5 #B53055 #98B530 #30B590
square
#4D30B5 #B53055 #98B530 #30B590
split-complementary
#4D30B5 #B59030 #55B530
monochromatic
#241654 #382385 #4D30B5 #6D51D1 #9682DE

Accessibility & contrast

On white

8.73
#4D30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4D30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30B5
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30B5#FFFFFF#000000##FFFFFF
##4D30B51.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#175570
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d30b5;
/* rgb */ color: rgb(77, 48, 181);
/* oklch */ color: oklch(43.4% 0.196 284.8);
Tailwind
colors: {
  custom: {
    50: '#8a6bcc',
    500: '#4d30b5',
    950: '#000000',
  },
}
SCSS
$custom: #4d30b5;
$custom-light: #8a6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30b5",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 253.083,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43366,
    "c": 0.19589,
    "h": 284.8
  },
  "luminance": 0.07028
}

Semantic roles & 50–950 ramp

primary
#4D30B5
secondary
#B6C77A
accent
#E146C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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