#4C30B5#4C30B5

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

Color values

HEX#4C30B5
RGBrgb(76, 48, 181)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(58%, 73.5%, 0%, 29%)
CIE-LABlab(31.77, 47.50, -65.94)
CIE-LCHlch(31.77, 81.27, 305.76°)
OKLaboklab(43.28% 0.0484 -0.1899)
OKLCHoklch(43.28% 0.196 284.3)
XYZxyz(12.3754, 6.9858, 44.4034)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C30B5 #99B530
analogous
#3056B5 #4C30B5 #8F30B5
triadic
#4C30B5 #B54C30 #30B54C
tetradic
#4C30B5 #B53056 #99B530 #30B58F
square
#4C30B5 #B53056 #99B530 #30B58F
split-complementary
#4C30B5 #B58F30 #56B530
monochromatic
#231654 #382385 #4C30B5 #6C51D1 #9582DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C30B5#FFFFFF#000000##FFFFFF
##4C30B51.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)
#004FB9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#125570
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c30b5;
/* rgb */ color: rgb(76, 48, 181);
/* oklch */ color: oklch(43.3% 0.196 284.3);
Tailwind
colors: {
  custom: {
    50: '#8a6bcc',
    500: '#4c30b5',
    950: '#000000',
  },
}
SCSS
$custom: #4c30b5;
$custom-light: #8a6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c30b5",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 252.632,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43277,
    "c": 0.19601,
    "h": 284.3
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#4C30B5
secondary
#B7C77A
accent
#E146C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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