#4A30AA#4A30AA

#4A30AA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.183 H 285.2°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#4A30AA
RGBrgb(74, 48, 170)
HSLhsl(253, 56%, 43%)
HSVhsv(253, 72%, 67%)
CMYKcmyk(56.5%, 71.8%, 0%, 33.3%)
CIE-LABlab(30.57, 43.91, -61.36)
CIE-LCHlch(30.57, 75.45, 305.59°)
OKLaboklab(42.07% 0.0479 -0.1766)
OKLCHoklch(42.07% 0.183 285.2)
XYZxyz(11.1345, 6.4714, 38.6848)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A30AA #90AA30
analogous
#3053AA #4A30AA #8730AA
triadic
#4A30AA #AA4A30 #30AA4A
tetradic
#4A30AA #AA3053 #90AA30 #30AA87
square
#4A30AA #AA3053 #90AA30 #30AA87
split-complementary
#4A30AA #AA8730 #53AA30
monochromatic
#20154B #35237A #4A30AA #674BCC #8F7BDA

Accessibility & contrast

On white

9.15
#4A30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4A30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A30AA
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A30AA#FFFFFF#000000##FFFFFF
##4A30AA1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#1C516A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a30aa;
/* rgb */ color: rgb(74, 48, 170);
/* oklch */ color: oklch(42.1% 0.183 285.2);
Tailwind
colors: {
  custom: {
    50: '#876bc4',
    500: '#4a30aa',
    950: '#000000',
  },
}
SCSS
$custom: #4a30aa;
$custom-light: #876bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a30aa",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 252.787,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42069,
    "c": 0.18295,
    "h": 285.2
  },
  "luminance": 0.06472
}

Semantic roles & 50–950 ramp

primary
#4A30AA
secondary
#B1C274
accent
#DF49BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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