#4228BB#4228BB

#4228BB is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.0% C 0.212 H 280.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#4228BB
RGBrgb(66, 40, 187)
HSLhsl(251, 65%, 45%)
HSVhsv(251, 79%, 73%)
CMYKcmyk(64.7%, 78.6%, 0%, 26.7%)
CIE-LABlab(30.07, 52.08, -72.35)
CIE-LCHlch(30.07, 89.14, 305.75°)
OKLaboklab(42.04% 0.0376 -0.2088)
OKLCHoklch(42.04% 0.212 280.2)
XYZxyz(11.9723, 6.2627, 47.5820)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228BB #A1BB28
analogous
#2858BB #4228BB #8C28BB
triadic
#4228BB #BB4228 #28BB42
tetradic
#4228BB #BB2858 #A1BB28 #28BB8C
square
#4228BB #BB2858 #A1BB28 #28BB8C
split-complementary
#4228BB #BB8C28 #58BB28
monochromatic
#1E1256 #301D89 #4228BB #6248D8 #8D7BE3

Accessibility & contrast

On white

9.32
#4228BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4228BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4228BB#FFFFFF#000000##FFFFFF
##4228BB1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBF
Deuteranopia (green-blind)
#0041B8
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4228bb;
/* rgb */ color: rgb(66, 40, 187);
/* oklch */ color: oklch(42.0% 0.212 280.2);
Tailwind
colors: {
  custom: {
    50: '#8766d1',
    500: '#4228bb',
    950: '#000000',
  },
}
SCSS
$custom: #4228bb;
$custom-light: #8766d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4228bb",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 250.612,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42036,
    "c": 0.2122,
    "h": 280.2
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#4228BB
secondary
#BBCB74
accent
#E840CA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4228BB

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

Preview Lab → · Contrast checker → · Palette generator →

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