#4D30B4#4D30B4

#4D30B4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.195 H 284.9°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4D30B4
RGBrgb(77, 48, 180)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(57.2%, 73.3%, 0%, 29.4%)
CIE-LABlab(31.78, 47.34, -65.34)
CIE-LCHlch(31.78, 80.69, 305.92°)
OKLaboklab(43.27% 0.0501 -0.1881)
OKLCHoklch(43.27% 0.195 284.9)
XYZxyz(12.3532, 6.9862, 43.8687)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30B4 #97B430
analogous
#3055B4 #4D30B4 #8F30B4
triadic
#4D30B4 #B44D30 #30B44D
tetradic
#4D30B4 #B43055 #97B430 #30B48F
square
#4D30B4 #B43055 #97B430 #30B48F
split-complementary
#4D30B4 #B48F30 #55B430
monochromatic
#241653 #382384 #4D30B4 #6D51D1 #9581DD

Accessibility & contrast

On white

8.76
#4D30B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4D30B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30B4
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30B4#FFFFFF#000000##FFFFFF
##4D30B41.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#18546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4d30b4;
/* rgb */ color: rgb(77, 48, 180);
/* oklch */ color: oklch(43.3% 0.195 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a6bcc',
    500: '#4d30b4',
    950: '#000000',
  },
}
SCSS
$custom: #4d30b4;
$custom-light: #8a6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30b4",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 253.182,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43272,
    "c": 0.1947,
    "h": 284.9
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#4D30B4
secondary
#B6C679
accent
#E147BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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