#4227BA#4227BA

#4227BA is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.8% C 0.212 H 280.4°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4227BA
RGBrgb(66, 39, 186)
HSLhsl(251, 65%, 44%)
HSVhsv(251, 79%, 73%)
CMYKcmyk(64.5%, 79%, 0%, 27.1%)
CIE-LABlab(29.80, 52.26, -72.20)
CIE-LCHlch(29.80, 89.13, 305.90°)
OKLaboklab(41.82% 0.0384 -0.2084)
OKLCHoklch(41.82% 0.212 280.4)
XYZxyz(11.8324, 6.1535, 47.0091)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227BA #9FBA27
analogous
#2756BA #4227BA #8B27BA
triadic
#4227BA #BA4227 #27BA42
tetradic
#4227BA #BA2756 #9FBA27 #27BA8B
square
#4227BA #BA2756 #9FBA27 #27BA8B
split-complementary
#4227BA #BA8B27 #56BA27
monochromatic
#1E1255 #301C87 #4227BA #6146D8 #8C79E3

Accessibility & contrast

On white

9.41
#4227BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4227BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227BA
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227BA#FFFFFF#000000##FFFFFF
##4227BA1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4227ba;
/* rgb */ color: rgb(66, 39, 186);
/* oklch */ color: oklch(41.8% 0.212 280.4);
Tailwind
colors: {
  custom: {
    50: '#8766d0',
    500: '#4227ba',
    950: '#000000',
  },
}
SCSS
$custom: #4227ba;
$custom-light: #8766d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4227ba",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 251.02,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41817,
    "c": 0.21191,
    "h": 280.4
  },
  "luminance": 0.06154
}

Semantic roles & 50–950 ramp

primary
#4227BA
secondary
#BACB72
accent
#E840C9
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4227BA

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

Preview Lab → · Contrast checker → · Palette generator →

#4227BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva