#4228A3#4228A3

#4228A3 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.184 H 283.8°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4228A3
RGBrgb(66, 40, 163)
HSLhsl(253, 61%, 40%)
HSVhsv(253, 75%, 64%)
CMYKcmyk(59.5%, 75.5%, 0%, 36.1%)
CIE-LABlab(27.63, 44.92, -62.00)
CIE-LCHlch(27.63, 76.56, 305.93°)
OKLaboklab(39.6% 0.044 -0.1786)
OKLCHoklch(39.6% 0.184 283.8)
XYZxyz(9.6144, 5.3196, 35.1634)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228A3 #89A328
analogous
#284CA3 #4228A3 #8028A3
triadic
#4228A3 #A34228 #28A342
tetradic
#4228A3 #A3284C #89A328 #28A380
square
#4228A3 #A3284C #89A328 #28A380
split-complementary
#4228A3 #A38028 #4CA328
monochromatic
#1A1041 #2E1C72 #4228A3 #593ACF #826BDB

Accessibility & contrast

On white

10.17
#4228A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4228A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4228A3#FFFFFF#000000##FFFFFF
##4228A31.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#044B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4228a3;
/* rgb */ color: rgb(66, 40, 163);
/* oklch */ color: oklch(39.6% 0.184 283.8);
Tailwind
colors: {
  custom: {
    50: '#8265bf',
    500: '#4228a3',
    950: '#000000',
  },
}
SCSS
$custom: #4228a3;
$custom-light: #8265bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4228a3",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 252.683,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39598,
    "c": 0.18399,
    "h": 283.8
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#4228A3
secondary
#AEC166
accent
#E444C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4228A3

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

Preview Lab → · Contrast checker → · Palette generator →

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