#4B34AB#4B34AB

#4B34AB is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.179 H 284.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#4B34AB
RGBrgb(75, 52, 171)
HSLhsl(252, 53%, 44%)
HSVhsv(252, 70%, 67%)
CMYKcmyk(56.1%, 69.6%, 0%, 32.9%)
CIE-LABlab(31.56, 42.15, -60.34)
CIE-LCHlch(31.56, 73.60, 304.94°)
OKLaboklab(42.82% 0.0457 -0.1735)
OKLCHoklch(42.82% 0.179 284.8)
XYZxyz(11.4781, 6.8914, 39.2455)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B34AB #94AB34
analogous
#3458AB #4B34AB #8634AB
triadic
#4B34AB #AB4B34 #34AB4B
tetradic
#4B34AB #AB3458 #94AB34 #34AB86
square
#4B34AB #AB3458 #94AB34 #34AB86
split-complementary
#4B34AB #AB8634 #58AB34
monochromatic
#22174D #36267C #4B34AB #6952CA #9281D9

Accessibility & contrast

On white

8.83
#4B34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4B34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B34AB
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B34AB#FFFFFF#000000##FFFFFF
##4B34AB1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#1E536B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4b34ab;
/* rgb */ color: rgb(75, 52, 171);
/* oklch */ color: oklch(42.8% 0.179 284.8);
Tailwind
colors: {
  custom: {
    50: '#876dc5',
    500: '#4b34ab',
    950: '#000000',
  },
}
SCSS
$custom: #4b34ab;
$custom-light: #876dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b34ab",
  "rgb": {
    "r": 75,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 251.597,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42823,
    "c": 0.17948,
    "h": 284.8
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#4B34AB
secondary
#B4C279
accent
#DD4BC1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4B34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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