#4229A4#4229A4

#4229A4 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.184 H 283.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4229A4
RGBrgb(66, 41, 164)
HSLhsl(252, 60%, 40%)
HSVhsv(252, 75%, 64%)
CMYKcmyk(59.8%, 75%, 0%, 35.7%)
CIE-LABlab(27.91, 44.70, -62.14)
CIE-LCHlch(27.91, 76.55, 305.73°)
OKLaboklab(39.83% 0.0431 -0.1791)
OKLCHoklch(39.83% 0.184 283.5)
XYZxyz(9.7385, 5.4238, 35.6485)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4229A4 #8BA429
analogous
#294EA4 #4229A4 #7F29A4
triadic
#4229A4 #A44229 #29A442
tetradic
#4229A4 #A4294E #8BA429 #29A47F
square
#4229A4 #A4294E #8BA429 #29A47F
split-complementary
#4229A4 #A47F29 #4EA429
monochromatic
#1B1142 #2E1D73 #4229A4 #5A3CCE #836DDA

Accessibility & contrast

On white

10.07
#4229A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4229A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4229A4
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4229A4#FFFFFF#000000##FFFFFF
##4229A41.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#014B64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4229a4;
/* rgb */ color: rgb(66, 41, 164);
/* oklch */ color: oklch(39.8% 0.184 283.5);
Tailwind
colors: {
  custom: {
    50: '#8266c0',
    500: '#4229a4',
    950: '#000000',
  },
}
SCSS
$custom: #4229a4;
$custom-light: #8266c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4229a4",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 164
  },
  "hsl": {
    "h": 252.195,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39827,
    "c": 0.18416,
    "h": 283.5
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#4229A4
secondary
#AFC168
accent
#E345C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4229A4

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

Preview Lab → · Contrast checker → · Palette generator →

#4229A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva