#4B34A5#4B34A5

#4B34A5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.172 H 285.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#4B34A5
RGBrgb(75, 52, 165)
HSLhsl(252, 52%, 43%)
HSVhsv(252, 68%, 65%)
CMYKcmyk(54.5%, 68.5%, 0%, 35.3%)
CIE-LABlab(31.04, 40.31, -57.58)
CIE-LCHlch(31.04, 70.29, 304.99°)
OKLaboklab(42.29% 0.0467 -0.1655)
OKLCHoklch(42.29% 0.172 285.8)
XYZxyz(10.9191, 6.6679, 36.3017)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B34A5 #8EA534
analogous
#3456A5 #4B34A5 #8334A5
triadic
#4B34A5 #A54B34 #34A54B
tetradic
#4B34A5 #A53456 #8EA534 #34A583
square
#4B34A5 #A53456 #8EA534 #34A583
split-complementary
#4B34A5 #A58334 #56A534
monochromatic
#211748 #362576 #4B34A5 #674FC7 #8F7DD6

Accessibility & contrast

On white

9.00
#4B34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4B34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B34A5
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B34A5#FFFFFF#000000##FFFFFF
##4B34A51.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#255168
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4b34a5;
/* rgb */ color: rgb(75, 52, 165);
/* oklch */ color: oklch(42.3% 0.172 285.8);
Tailwind
colors: {
  custom: {
    50: '#866dc1',
    500: '#4b34a5',
    950: '#000000',
  },
}
SCSS
$custom: #4b34a5;
$custom-light: #866dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b34a5",
  "rgb": {
    "r": 75,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 252.212,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4229,
    "c": 0.17193,
    "h": 285.8
  },
  "luminance": 0.06668
}

Semantic roles & 50–950 ramp

primary
#4B34A5
secondary
#B0BF76
accent
#DC4CBE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4B34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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