#4229AB#4229AB

#4229AB is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.193 H 282.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#4229AB
RGBrgb(66, 41, 171)
HSLhsl(252, 61%, 42%)
HSVhsv(252, 76%, 67%)
CMYKcmyk(61.4%, 76%, 0%, 32.9%)
CIE-LABlab(28.60, 46.82, -65.22)
CIE-LCHlch(28.60, 80.29, 305.67°)
OKLaboklab(40.52% 0.0413 -0.1881)
OKLCHoklch(40.52% 0.193 282.4)
XYZxyz(10.3881, 5.6837, 39.0698)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4229AB #92AB29
analogous
#2951AB #4229AB #8329AB
triadic
#4229AB #AB4229 #29AB42
tetradic
#4229AB #AB2951 #92AB29 #29AB83
square
#4229AB #AB2951 #92AB29 #29AB83
split-complementary
#4229AB #AB8329 #51AB29
monochromatic
#1C1148 #2F1D7A #4229AB #5C40D1 #8671DD

Accessibility & contrast

On white

9.83
#4229AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4229AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4229AB
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4229AB#FFFFFF#000000##FFFFFF
##4229AB1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4229ab;
/* rgb */ color: rgb(66, 41, 171);
/* oklch */ color: oklch(40.5% 0.193 282.4);
Tailwind
colors: {
  custom: {
    50: '#8366c5',
    500: '#4229ab',
    950: '#000000',
  },
}
SCSS
$custom: #4229ab;
$custom-light: #8366c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4229ab",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 251.538,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40521,
    "c": 0.19256,
    "h": 282.4
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#4229AB
secondary
#B3C46C
accent
#E443C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4229AB

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

Preview Lab → · Contrast checker → · Palette generator →

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