#4228B7#4228B7

#4228B7 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.6% C 0.208 H 280.7°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4228B7
RGBrgb(66, 40, 183)
HSLhsl(251, 64%, 44%)
HSVhsv(251, 78%, 72%)
CMYKcmyk(63.9%, 78.1%, 0%, 28.2%)
CIE-LABlab(29.65, 50.90, -70.67)
CIE-LCHlch(29.65, 87.09, 305.76°)
OKLaboklab(41.62% 0.0387 -0.2039)
OKLCHoklch(41.62% 0.208 280.7)
XYZxyz(11.5501, 6.0938, 45.3581)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228B7 #9DB728
analogous
#2855B7 #4228B7 #8928B7
triadic
#4228B7 #B74228 #28B742
tetradic
#4228B7 #B72855 #9DB728 #28B789
square
#4228B7 #B72855 #9DB728 #28B789
split-complementary
#4228B7 #B78928 #55B728
monochromatic
#1E1253 #301D85 #4228B7 #6046D6 #8B78E1

Accessibility & contrast

On white

9.46
#4228B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4228B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4228B7#FFFFFF#000000##FFFFFF
##4228B71.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#00526F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4228b7;
/* rgb */ color: rgb(66, 40, 183);
/* oklch */ color: oklch(41.6% 0.208 280.7);
Tailwind
colors: {
  custom: {
    50: '#8666ce',
    500: '#4228b7',
    950: '#000000',
  },
}
SCSS
$custom: #4228b7;
$custom-light: #8666ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4228b7",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 250.909,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41621,
    "c": 0.20759,
    "h": 280.7
  },
  "luminance": 0.06095
}

Semantic roles & 50–950 ramp

primary
#4228B7
secondary
#B9C972
accent
#E741C9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4228B7

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

Preview Lab → · Contrast checker → · Palette generator →

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