#4A30B7#4A30B7

#4A30B7 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.199 H 283.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4A30B7
RGBrgb(74, 48, 183)
HSLhsl(252, 58%, 45%)
HSVhsv(252, 74%, 72%)
CMYKcmyk(59.6%, 73.8%, 0%, 28.2%)
CIE-LABlab(31.78, 47.82, -67.13)
CIE-LCHlch(31.78, 82.42, 305.46°)
OKLaboklab(43.29% 0.0451 -0.1935)
OKLCHoklch(43.29% 0.199 283.1)
XYZxyz(12.4256, 6.9878, 45.4846)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A30B7 #9DB730
analogous
#3059B7 #4A30B7 #8E30B7
triadic
#4A30B7 #B74A30 #30B74A
tetradic
#4A30B7 #B73059 #9DB730 #30B78E
square
#4A30B7 #B73059 #9DB730 #30B78E
split-complementary
#4A30B7 #B78E30 #59B730
monochromatic
#231756 #362387 #4A30B7 #6B52D2 #9583DE

Accessibility & contrast

On white

8.76
#4A30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4A30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A30B7
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A30B7#FFFFFF#000000##FFFFFF
##4A30B71.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a30b7;
/* rgb */ color: rgb(74, 48, 183);
/* oklch */ color: oklch(43.3% 0.199 283.1);
Tailwind
colors: {
  custom: {
    50: '#896bce',
    500: '#4a30b7',
    950: '#000000',
  },
}
SCSS
$custom: #4a30b7;
$custom-light: #896bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4a30b7",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 251.556,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43293,
    "c": 0.19865,
    "h": 283.1
  },
  "luminance": 0.06989
}

Semantic roles & 50–950 ramp

primary
#4A30B7
secondary
#B9C87B
accent
#E246C4
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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