#4A30B5#4A30B5

#4A30B5 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.196 H 283.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4A30B5
RGBrgb(74, 48, 181)
HSLhsl(252, 58%, 45%)
HSVhsv(252, 73%, 71%)
CMYKcmyk(59.1%, 73.5%, 0%, 29%)
CIE-LABlab(31.59, 47.22, -66.25)
CIE-LCHlch(31.59, 81.36, 305.48°)
OKLaboklab(43.1% 0.0456 -0.1909)
OKLCHoklch(43.1% 0.196 283.4)
XYZxyz(12.2189, 6.9051, 44.3961)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A30B5 #9BB530
analogous
#3059B5 #4A30B5 #8C30B5
triadic
#4A30B5 #B54A30 #30B54A
tetradic
#4A30B5 #B53059 #9BB530 #30B58C
square
#4A30B5 #B53059 #9BB530 #30B58C
split-complementary
#4A30B5 #B58C30 #59B530
monochromatic
#221654 #362385 #4A30B5 #6A51D1 #9482DE

Accessibility & contrast

On white

8.82
#4A30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4A30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A30B5
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A30B5#FFFFFF#000000##FFFFFF
##4A30B51.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#045570
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a30b5;
/* rgb */ color: rgb(74, 48, 181);
/* oklch */ color: oklch(43.1% 0.196 283.4);
Tailwind
colors: {
  custom: {
    50: '#896bcc',
    500: '#4a30b5',
    950: '#000000',
  },
}
SCSS
$custom: #4a30b5;
$custom-light: #896bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a30b5",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 251.729,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43101,
    "c": 0.19626,
    "h": 283.4
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#4A30B5
secondary
#B8C77A
accent
#E146C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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