#4A34B1#4A34B1

#4A34B1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.187 H 283.4°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#4A34B1
RGBrgb(74, 52, 177)
HSLhsl(251, 55%, 45%)
HSVhsv(251, 71%, 69%)
CMYKcmyk(58.2%, 70.6%, 0%, 30.6%)
CIE-LABlab(32.00, 43.83, -63.20)
CIE-LCHlch(32.00, 76.91, 304.74°)
OKLaboklab(43.28% 0.0432 -0.182)
OKLCHoklch(43.28% 0.187 283.4)
XYZxyz(11.9854, 7.0854, 42.3225)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A34B1 #9BB134
analogous
#345DB1 #4A34B1 #8934B1
triadic
#4A34B1 #B14A34 #34B14A
tetradic
#4A34B1 #B1345D #9BB134 #34B189
square
#4A34B1 #B1345D #9BB134 #34B189
split-complementary
#4A34B1 #B18934 #5DB134
monochromatic
#221852 #362682 #4A34B1 #6A55CD #9484DB

Accessibility & contrast

On white

8.69
#4A34B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4A34B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A34B1
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A34B1#FFFFFF#000000##FFFFFF
##4A34B11.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#0F556F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a34b1;
/* rgb */ color: rgb(74, 52, 177);
/* oklch */ color: oklch(43.3% 0.187 283.4);
Tailwind
colors: {
  custom: {
    50: '#886ec9',
    500: '#4a34b1',
    950: '#000000',
  },
}
SCSS
$custom: #4a34b1;
$custom-light: #886ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a34b1",
  "rgb": {
    "r": 74,
    "g": 52,
    "b": 177
  },
  "hsl": {
    "h": 250.56,
    "s": 54.585,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43281,
    "c": 0.18704,
    "h": 283.4
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#4A34B1
secondary
#B8C57C
accent
#DE4AC4
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A34B1

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

Preview Lab → · Contrast checker → · Palette generator →

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