#4A34B2#4A34B2

#4A34B2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.188 H 283.2°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#4A34B2
RGBrgb(74, 52, 178)
HSLhsl(250, 55%, 45%)
HSVhsv(250, 71%, 70%)
CMYKcmyk(58.4%, 70.8%, 0%, 30.2%)
CIE-LABlab(32.09, 44.14, -63.65)
CIE-LCHlch(32.09, 77.46, 304.74°)
OKLaboklab(43.37% 0.0431 -0.1833)
OKLCHoklch(43.37% 0.188 283.2)
XYZxyz(12.0854, 7.1254, 42.8494)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A34B2 #9CB234
analogous
#345DB2 #4A34B2 #8934B2
triadic
#4A34B2 #B24A34 #34B24A
tetradic
#4A34B2 #B2345D #9CB234 #34B289
square
#4A34B2 #B2345D #9CB234 #34B289
split-complementary
#4A34B2 #B28934 #5DB234
monochromatic
#231853 #362683 #4A34B2 #6B56CE #9485DB

Accessibility & contrast

On white

8.66
#4A34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4A34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A34B2
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A34B2#FFFFFF#000000##FFFFFF
##4A34B21.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#0C566F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a34b2;
/* rgb */ color: rgb(74, 52, 178);
/* oklch */ color: oklch(43.4% 0.188 283.2);
Tailwind
colors: {
  custom: {
    50: '#886eca',
    500: '#4a34b2',
    950: '#000000',
  },
}
SCSS
$custom: #4a34b2;
$custom-light: #886eca;
$custom-dark: #000000;
JSON
{
  "hex": "#4a34b2",
  "rgb": {
    "r": 74,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 250.476,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43373,
    "c": 0.18828,
    "h": 283.2
  },
  "luminance": 0.07126
}

Semantic roles & 50–950 ramp

primary
#4A34B2
secondary
#B8C57D
accent
#DE4AC4
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4A34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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