#4A30B2#4A30B2

#4A30B2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.193 H 283.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#4A30B2
RGBrgb(74, 48, 178)
HSLhsl(252, 58%, 44%)
HSVhsv(252, 73%, 70%)
CMYKcmyk(58.4%, 73%, 0%, 30.2%)
CIE-LABlab(31.31, 46.32, -64.93)
CIE-LCHlch(31.31, 79.76, 305.50°)
OKLaboklab(42.82% 0.0462 -0.187)
OKLCHoklch(42.82% 0.193 283.9)
XYZxyz(11.9144, 6.7833, 42.7923)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A30B2 #98B230
analogous
#3057B2 #4A30B2 #8B30B2
triadic
#4A30B2 #B24A30 #30B24A
tetradic
#4A30B2 #B23057 #98B230 #30B28B
square
#4A30B2 #B23057 #98B230 #30B28B
split-complementary
#4A30B2 #B28B30 #57B230
monochromatic
#221652 #362382 #4A30B2 #6950D0 #9280DD

Accessibility & contrast

On white

8.91
#4A30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4A30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A30B2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A30B2#FFFFFF#000000##FFFFFF
##4A30B21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#0D546E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a30b2;
/* rgb */ color: rgb(74, 48, 178);
/* oklch */ color: oklch(42.8% 0.193 283.9);
Tailwind
colors: {
  custom: {
    50: '#886bca',
    500: '#4a30b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a30b2;
$custom-light: #886bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a30b2",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 252,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42817,
    "c": 0.19266,
    "h": 283.9
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#4A30B2
secondary
#B6C678
accent
#E147C2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4A30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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