#4227B3#4227B3

#4227B3 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.1% C 0.204 H 281.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4227B3
RGBrgb(66, 39, 179)
HSLhsl(252, 64%, 43%)
HSVhsv(252, 78%, 70%)
CMYKcmyk(63.1%, 78.2%, 0%, 29.8%)
CIE-LABlab(29.06, 50.20, -69.25)
CIE-LCHlch(29.06, 85.53, 305.94°)
OKLaboklab(41.09% 0.0404 -0.1998)
OKLCHoklch(41.09% 0.204 281.4)
XYZxyz(11.1064, 5.8631, 43.1855)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227B3 #98B327
analogous
#2752B3 #4227B3 #8827B3
triadic
#4227B3 #B34227 #27B342
tetradic
#4227B3 #B32752 #98B327 #27B388
square
#4227B3 #B32752 #98B327 #27B388
split-complementary
#4227B3 #B38827 #52B327
monochromatic
#1D114E #2F1C81 #4227B3 #5E41D6 #8974E1

Accessibility & contrast

On white

9.66
#4227B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4227B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227B3
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227B3#FFFFFF#000000##FFFFFF
##4227B31.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B7
Deuteranopia (green-blind)
#003FB1
Tritanopia (blue-blind)
#00506C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4227b3;
/* rgb */ color: rgb(66, 39, 179);
/* oklch */ color: oklch(41.1% 0.204 281.4);
Tailwind
colors: {
  custom: {
    50: '#8565cb',
    500: '#4227b3',
    950: '#000000',
  },
}
SCSS
$custom: #4227b3;
$custom-light: #8565cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4227b3",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 251.571,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4109,
    "c": 0.20384,
    "h": 281.4
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#4227B3
secondary
#B7C86E
accent
#E741C7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4227B3

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

Preview Lab → · Contrast checker → · Palette generator →

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