#4C30B4#4C30B4

#4C30B4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.195 H 284.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4C30B4
RGBrgb(76, 48, 180)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(57.8%, 73.3%, 0%, 29.4%)
CIE-LABlab(31.68, 47.20, -65.50)
CIE-LCHlch(31.68, 80.74, 305.78°)
OKLaboklab(43.18% 0.0487 -0.1886)
OKLCHoklch(43.18% 0.195 284.5)
XYZxyz(12.2731, 6.9449, 43.8650)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C30B4 #98B430
analogous
#3056B4 #4C30B4 #8E30B4
triadic
#4C30B4 #B44C30 #30B44C
tetradic
#4C30B4 #B43056 #98B430 #30B48E
square
#4C30B4 #B43056 #98B430 #30B48E
split-complementary
#4C30B4 #B48E30 #56B430
monochromatic
#231653 #382384 #4C30B4 #6C51D1 #9581DD

Accessibility & contrast

On white

8.79
#4C30B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4C30B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C30B4
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C30B4#FFFFFF#000000##FFFFFF
##4C30B41.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c30b4;
/* rgb */ color: rgb(76, 48, 180);
/* oklch */ color: oklch(43.2% 0.195 284.5);
Tailwind
colors: {
  custom: {
    50: '#8a6bcc',
    500: '#4c30b4',
    950: '#000000',
  },
}
SCSS
$custom: #4c30b4;
$custom-light: #8a6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c30b4",
  "rgb": {
    "r": 76,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 252.727,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43183,
    "c": 0.19481,
    "h": 284.5
  },
  "luminance": 0.06946
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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