#4228B2#4228B2

#4228B2 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.1% C 0.202 H 281.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4228B2
RGBrgb(66, 40, 178)
HSLhsl(251, 63%, 43%)
HSVhsv(251, 78%, 70%)
CMYKcmyk(62.9%, 77.5%, 0%, 30.2%)
CIE-LABlab(29.13, 49.42, -68.54)
CIE-LCHlch(29.13, 84.50, 305.79°)
OKLaboklab(41.11% 0.0401 -0.1977)
OKLCHoklch(41.11% 0.202 281.5)
XYZxyz(11.0389, 5.8894, 42.6659)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4228B2 #98B228
analogous
#2853B2 #4228B2 #8728B2
triadic
#4228B2 #B24228 #28B242
tetradic
#4228B2 #B22853 #98B228 #28B287
square
#4228B2 #B22853 #98B228 #28B287
split-complementary
#4228B2 #B28728 #53B228
monochromatic
#1D124E #2F1D80 #4228B2 #5E43D5 #8975E0

Accessibility & contrast

On white

9.64
#4228B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4228B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4228B2
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4228B2#FFFFFF#000000##FFFFFF
##4228B21.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0040B0
Tritanopia (blue-blind)
#00506C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4228b2;
/* rgb */ color: rgb(66, 40, 178);
/* oklch */ color: oklch(41.1% 0.202 281.5);
Tailwind
colors: {
  custom: {
    50: '#8566ca',
    500: '#4228b2',
    950: '#000000',
  },
}
SCSS
$custom: #4228b2;
$custom-light: #8566ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4228b2",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 251.304,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41106,
    "c": 0.20177,
    "h": 281.5
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

primary
#4228B2
secondary
#B7C76F
accent
#E641C7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4228B2

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

Preview Lab → · Contrast checker → · Palette generator →

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