#4A30B3#4A30B3

#4A30B3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.194 H 283.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4A30B3
RGBrgb(74, 48, 179)
HSLhsl(252, 58%, 45%)
HSVhsv(252, 73%, 70%)
CMYKcmyk(58.7%, 73.2%, 0%, 29.8%)
CIE-LABlab(31.40, 46.62, -65.37)
CIE-LCHlch(31.40, 80.29, 305.49°)
OKLaboklab(42.91% 0.046 -0.1883)
OKLCHoklch(42.91% 0.194 283.7)
XYZxyz(12.0152, 6.8237, 43.3230)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A30B3 #99B330
analogous
#3058B3 #4A30B3 #8B30B3
triadic
#4A30B3 #B34A30 #30B34A
tetradic
#4A30B3 #B33058 #99B330 #30B38B
square
#4A30B3 #B33058 #99B330 #30B38B
split-complementary
#4A30B3 #B38B30 #58B330
monochromatic
#221652 #362383 #4A30B3 #6A50D0 #9380DD

Accessibility & contrast

On white

8.88
#4A30B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A30B3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A30B3#FFFFFF#000000##FFFFFF
##4A30B31.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#0A546F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a30b3;
/* rgb */ color: rgb(74, 48, 179);
/* oklch */ color: oklch(42.9% 0.194 283.7);
Tailwind
colors: {
  custom: {
    50: '#886bcb',
    500: '#4a30b3',
    950: '#000000',
  },
}
SCSS
$custom: #4a30b3;
$custom-light: #886bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a30b3",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 251.908,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.19386,
    "h": 283.7
  },
  "luminance": 0.06824
}

Semantic roles & 50–950 ramp

primary
#4A30B3
secondary
#B7C679
accent
#E147C2
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4A30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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