#4228C3#4228C3

#4228C3 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.221 H 279.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4228C3
RGBrgb(66, 40, 195)
HSLhsl(250, 66%, 46%)
HSVhsv(250, 79%, 76%)
CMYKcmyk(66.2%, 79.5%, 0%, 23.5%)
CIE-LABlab(30.91, 54.42, -75.66)
CIE-LCHlch(30.91, 93.20, 305.73°)
OKLaboklab(42.88% 0.0353 -0.2185)
OKLCHoklch(42.88% 0.221 279.2)
XYZxyz(12.8527, 6.6149, 52.2187)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228C3 #A9C328
analogous
#285BC3 #4228C3 #8F28C3
triadic
#4228C3 #C34228 #28C342
tetradic
#4228C3 #C3285B #A9C328 #28C38F
square
#4228C3 #C3285B #A9C328 #28C38F
split-complementary
#4228C3 #C38F28 #5BC328
monochromatic
#20135D #311E90 #4228C3 #654EDB #9180E5

Accessibility & contrast

On white

9.04
#4228C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4228C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4228C3#FFFFFF#000000##FFFFFF
##4228C31.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC7
Deuteranopia (green-blind)
#0043C0
Tritanopia (blue-blind)
#005776
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4228c3;
/* rgb */ color: rgb(66, 40, 195);
/* oklch */ color: oklch(42.9% 0.221 279.2);
Tailwind
colors: {
  custom: {
    50: '#8867d7',
    500: '#4228c3',
    950: '#000000',
  },
}
SCSS
$custom: #4228c3;
$custom-light: #8867d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4228c3",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 195
  },
  "hsl": {
    "h": 250.065,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42876,
    "c": 0.22133,
    "h": 279.2
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

primary
#4228C3
secondary
#C0CE79
accent
#E93FCC
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #4228C3

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

Preview Lab → · Contrast checker → · Palette generator →

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