#4227B2#4227B2

#4227B2 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 41.0% C 0.203 H 281.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4227B2
RGBrgb(66, 39, 178)
HSLhsl(252, 64%, 43%)
HSVhsv(252, 78%, 70%)
CMYKcmyk(62.9%, 78.1%, 0%, 30.2%)
CIE-LABlab(28.96, 49.91, -68.82)
CIE-LCHlch(28.96, 85.01, 305.95°)
OKLaboklab(40.99% 0.0407 -0.1986)
OKLCHoklch(40.99% 0.203 281.6)
XYZxyz(11.0056, 5.8228, 42.6548)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4227B2 #97B227
analogous
#2751B2 #4227B2 #8827B2
triadic
#4227B2 #B24227 #27B242
tetradic
#4227B2 #B22751 #97B227 #27B288
square
#4227B2 #B22751 #97B227 #27B288
split-complementary
#4227B2 #B28827 #51B227
monochromatic
#1D114E #2F1C80 #4227B2 #5E41D5 #8873E0

Accessibility & contrast

On white

9.70
#4227B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4227B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4227B2
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4227B2#FFFFFF#000000##FFFFFF
##4227B21.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4227b2;
/* rgb */ color: rgb(66, 39, 178);
/* oklch */ color: oklch(41.0% 0.203 281.6);
Tailwind
colors: {
  custom: {
    50: '#8565ca',
    500: '#4227b2',
    950: '#000000',
  },
}
SCSS
$custom: #4227b2;
$custom-light: #8565ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4227b2",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 251.655,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40987,
    "c": 0.20268,
    "h": 281.6
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4227B2

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

Preview Lab → · Contrast checker → · Palette generator →

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