#4228AA#4228AA

#4228AA is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.192 H 282.7°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4228AA
RGBrgb(66, 40, 170)
HSLhsl(252, 62%, 41%)
HSVhsv(252, 76%, 67%)
CMYKcmyk(61.2%, 76.5%, 0%, 33.3%)
CIE-LABlab(28.32, 47.03, -65.08)
CIE-LCHlch(28.32, 80.30, 305.85°)
OKLaboklab(40.29% 0.0422 -0.1877)
OKLCHoklch(40.29% 0.192 282.7)
XYZxyz(10.2590, 5.5774, 38.5584)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228AA #90AA28
analogous
#284FAA #4228AA #8328AA
triadic
#4228AA #AA4228 #28AA42
tetradic
#4228AA #AA284F #90AA28 #28AA83
square
#4228AA #AA284F #90AA28 #28AA83
split-complementary
#4228AA #AA8328 #4FAA28
monochromatic
#1C1147 #2F1C78 #4228AA #5B3ED2 #856FDD

Accessibility & contrast

On white

9.93
#4228AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4228AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4228AA
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4228AA#FFFFFF#000000##FFFFFF
##4228AA1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4228aa;
/* rgb */ color: rgb(66, 40, 170);
/* oklch */ color: oklch(40.3% 0.192 282.7);
Tailwind
colors: {
  custom: {
    50: '#8366c4',
    500: '#4228aa',
    950: '#000000',
  },
}
SCSS
$custom: #4228aa;
$custom-light: #8366c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4228aa",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 252,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40295,
    "c": 0.19235,
    "h": 282.7
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

primary
#4228AA
secondary
#B2C46A
accent
#E543C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4228AA

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

Preview Lab → · Contrast checker → · Palette generator →

#4228AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva