#4227BB#4227BB

#4227BB is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.213 H 280.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#4227BB
RGBrgb(66, 39, 187)
HSLhsl(251, 65%, 44%)
HSVhsv(251, 79%, 73%)
CMYKcmyk(64.7%, 79.1%, 0%, 26.7%)
CIE-LABlab(29.90, 52.55, -72.62)
CIE-LCHlch(29.90, 89.64, 305.89°)
OKLaboklab(41.92% 0.0381 -0.2096)
OKLCHoklch(41.92% 0.213 280.3)
XYZxyz(11.9391, 6.1962, 47.5709)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227BB #A0BB27
analogous
#2756BB #4227BB #8C27BB
triadic
#4227BB #BB4227 #27BB42
tetradic
#4227BB #BB2756 #A0BB27 #27BB8C
square
#4227BB #BB2756 #A0BB27 #27BB8C
split-complementary
#4227BB #BB8C27 #56BB27
monochromatic
#1E1256 #301C88 #4227BB #6147D9 #8D79E3

Accessibility & contrast

On white

9.38
#4227BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4227BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227BB
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227BB#FFFFFF#000000##FFFFFF
##4227BB1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4227bb;
/* rgb */ color: rgb(66, 39, 187);
/* oklch */ color: oklch(41.9% 0.213 280.3);
Tailwind
colors: {
  custom: {
    50: '#8766d1',
    500: '#4227bb',
    950: '#000000',
  },
}
SCSS
$custom: #4227bb;
$custom-light: #8766d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4227bb",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 250.946,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41922,
    "c": 0.21306,
    "h": 280.3
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#4227BB
secondary
#BBCB73
accent
#E83FCA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #4227BB

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

Preview Lab → · Contrast checker → · Palette generator →

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