#4227A8#4227A8

#4227A8 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.191 H 283.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4227A8
RGBrgb(66, 39, 168)
HSLhsl(253, 62%, 41%)
HSVhsv(253, 77%, 66%)
CMYKcmyk(60.7%, 76.8%, 0%, 34.1%)
CIE-LABlab(27.94, 46.94, -64.50)
CIE-LCHlch(27.94, 79.77, 306.04°)
OKLaboklab(39.97% 0.0434 -0.1859)
OKLCHoklch(39.97% 0.191 283.1)
XYZxyz(10.0380, 5.4358, 37.5584)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227A8 #8DA827
analogous
#274CA8 #4227A8 #8227A8
triadic
#4227A8 #A84227 #27A842
tetradic
#4227A8 #A8274C #8DA827 #27A882
square
#4227A8 #A8274C #8DA827 #27A882
split-complementary
#4227A8 #A88227 #4CA827
monochromatic
#1B1045 #2E1B76 #4227A8 #5A3BD1 #846CDD

Accessibility & contrast

On white

10.06
#4227A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4227A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227A8
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227A8#FFFFFF#000000##FFFFFF
##4227A81.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4227a8;
/* rgb */ color: rgb(66, 39, 168);
/* oklch */ color: oklch(40.0% 0.191 283.1);
Tailwind
colors: {
  custom: {
    50: '#8365c3',
    500: '#4227a8',
    950: '#000000',
  },
}
SCSS
$custom: #4227a8;
$custom-light: #8365c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4227a8",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 252.558,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39969,
    "c": 0.19095,
    "h": 283.1
  },
  "luminance": 0.05436
}

Semantic roles & 50–950 ramp

primary
#4227A8
secondary
#B0C367
accent
#E542C3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4227A8

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

Preview Lab → · Contrast checker → · Palette generator →

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