#4A30A2#4A30A2

#4A30A2 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.173 H 286.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4A30A2
RGBrgb(74, 48, 162)
HSLhsl(254, 54%, 41%)
HSVhsv(254, 70%, 64%)
CMYKcmyk(54.3%, 70.4%, 0%, 36.5%)
CIE-LABlab(29.86, 41.50, -57.70)
CIE-LCHlch(29.86, 71.08, 305.72°)
OKLaboklab(41.34% 0.0495 -0.1658)
OKLCHoklch(41.34% 0.173 286.6)
XYZxyz(10.4006, 6.1778, 34.8198)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A30A2 #88A230
analogous
#304FA2 #4A30A2 #8330A2
triadic
#4A30A2 #A24A30 #30A24A
tetradic
#4A30A2 #A2304F #88A230 #30A283
square
#4A30A2 #A2304F #88A230 #30A283
split-complementary
#4A30A2 #A28330 #4FA230
monochromatic
#1F1444 #342273 #4A30A2 #6447C8 #8C76D6

Accessibility & contrast

On white

9.39
#4A30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4A30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A30A2
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A30A2#FFFFFF#000000##FFFFFF
##4A30A21.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#264E65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a30a2;
/* rgb */ color: rgb(74, 48, 162);
/* oklch */ color: oklch(41.3% 0.173 286.6);
Tailwind
colors: {
  custom: {
    50: '#866abe',
    500: '#4a30a2',
    950: '#000000',
  },
}
SCSS
$custom: #4a30a2;
$custom-light: #866abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4a30a2",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 253.684,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41339,
    "c": 0.17307,
    "h": 286.6
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#4A30A2
secondary
#ACBE6F
accent
#DE4ABC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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