#4A30B4#4A30B4

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

Color values

HEX#4A30B4
RGBrgb(74, 48, 180)
HSLhsl(252, 58%, 45%)
HSVhsv(252, 73%, 71%)
CMYKcmyk(58.9%, 73.3%, 0%, 29.4%)
CIE-LABlab(31.50, 46.92, -65.81)
CIE-LCHlch(31.50, 80.83, 305.49°)
OKLaboklab(43.01% 0.0458 -0.1896)
OKLCHoklch(43.01% 0.195 283.6)
XYZxyz(12.1167, 6.8643, 43.8576)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A30B4 #9AB430
analogous
#3058B4 #4A30B4 #8C30B4
triadic
#4A30B4 #B44A30 #30B44A
tetradic
#4A30B4 #B43058 #9AB430 #30B48C
square
#4A30B4 #B43058 #9AB430 #30B48C
split-complementary
#4A30B4 #B48C30 #58B430
monochromatic
#221653 #362384 #4A30B4 #6A51D1 #9381DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A30B4#FFFFFF#000000##FFFFFF
##4A30B41.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)
#004EB8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#07546F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a30b4;
/* rgb */ color: rgb(74, 48, 180);
/* oklch */ color: oklch(43.0% 0.195 283.6);
Tailwind
colors: {
  custom: {
    50: '#896bcc',
    500: '#4a30b4',
    950: '#000000',
  },
}
SCSS
$custom: #4a30b4;
$custom-light: #896bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a30b4",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 251.818,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43006,
    "c": 0.19506,
    "h": 283.6
  },
  "luminance": 0.06865
}

Semantic roles & 50–950 ramp

primary
#4A30B4
secondary
#B7C679
accent
#E147C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4A30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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