#4228B9#4228B9

#4228B9 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.8% C 0.210 H 280.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4228B9
RGBrgb(66, 40, 185)
HSLhsl(251, 64%, 44%)
HSVhsv(251, 78%, 73%)
CMYKcmyk(64.3%, 78.4%, 0%, 27.5%)
CIE-LABlab(29.86, 51.49, -71.51)
CIE-LCHlch(29.86, 88.12, 305.76°)
OKLaboklab(41.83% 0.0381 -0.2064)
OKLCHoklch(41.83% 0.21 280.5)
XYZxyz(11.7597, 6.1777, 46.4622)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228B9 #9FB928
analogous
#2856B9 #4228B9 #8B28B9
triadic
#4228B9 #B94228 #28B942
tetradic
#4228B9 #B92856 #9FB928 #28B98B
square
#4228B9 #B92856 #9FB928 #28B98B
split-complementary
#4228B9 #B98B28 #56B928
monochromatic
#1E1254 #301D87 #4228B9 #6147D7 #8C79E2

Accessibility & contrast

On white

9.39
#4228B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4228B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4228B9#FFFFFF#000000##FFFFFF
##4228B91.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#0041B6
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4228b9;
/* rgb */ color: rgb(66, 40, 185);
/* oklch */ color: oklch(41.8% 0.210 280.5);
Tailwind
colors: {
  custom: {
    50: '#8666cf',
    500: '#4228b9',
    950: '#000000',
  },
}
SCSS
$custom: #4228b9;
$custom-light: #8666cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4228b9",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 250.759,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41828,
    "c": 0.20989,
    "h": 280.5
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#4228B9
secondary
#BACA73
accent
#E740C9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4228B9

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

Preview Lab → · Contrast checker → · Palette generator →

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