#4D30B1#4D30B1

#4D30B1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.191 H 285.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4D30B1
RGBrgb(77, 48, 177)
HSLhsl(253, 57%, 44%)
HSVhsv(253, 73%, 69%)
CMYKcmyk(56.5%, 72.9%, 0%, 30.6%)
CIE-LABlab(31.50, 46.45, -64.01)
CIE-LCHlch(31.50, 79.09, 305.97°)
OKLaboklab(42.99% 0.0508 -0.1842)
OKLCHoklch(42.99% 0.191 285.4)
XYZxyz(12.0509, 6.8653, 42.2766)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D30B1 #94B130
analogous
#3054B1 #4D30B1 #8E30B1
triadic
#4D30B1 #B14D30 #30B14D
tetradic
#4D30B1 #B13054 #94B130 #30B18E
square
#4D30B1 #B13054 #94B130 #30B18E
split-complementary
#4D30B1 #B18E30 #54B130
monochromatic
#231651 #382381 #4D30B1 #6C4FCF #947FDC

Accessibility & contrast

On white

8.85
#4D30B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4D30B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D30B1
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D30B1#FFFFFF#000000##FFFFFF
##4D30B11.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#1D536D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d30b1;
/* rgb */ color: rgb(77, 48, 177);
/* oklch */ color: oklch(43.0% 0.191 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a6bc9',
    500: '#4d30b1',
    950: '#000000',
  },
}
SCSS
$custom: #4d30b1;
$custom-light: #8a6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d30b1",
  "rgb": {
    "r": 77,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 253.488,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42991,
    "c": 0.19111,
    "h": 285.4
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

primary
#4D30B1
secondary
#B4C578
accent
#E147BE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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