#4222AF#4222AF

#4222AF is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.1% C 0.204 H 282.6°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4222AF
RGBrgb(66, 34, 175)
HSLhsl(254, 67%, 41%)
HSVhsv(254, 81%, 69%)
CMYKcmyk(62.3%, 80.6%, 0%, 31.4%)
CIE-LABlab(27.84, 51.38, -68.88)
CIE-LCHlch(27.84, 85.93, 306.72°)
OKLaboklab(40.11% 0.0444 -0.1987)
OKLCHoklch(40.11% 0.204 282.6)
XYZxyz(10.5542, 5.3967, 41.0346)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222AF #8FAF22
analogous
#2248AF #4222AF #8822AF
triadic
#4222AF #AF4222 #22AF42
tetradic
#4222AF #AF2248 #8FAF22 #22AF88
square
#4222AF #AF2248 #8FAF22 #22AF88
split-complementary
#4222AF #AF8822 #48AF22
monochromatic
#1B0E49 #2F187C #4222AF #5B36D8 #8569E2

Accessibility & contrast

On white

10.10
#4222AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4222AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222AF
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222AF#FFFFFF#000000##FFFFFF
##4222AF1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4222af;
/* rgb */ color: rgb(66, 34, 175);
/* oklch */ color: oklch(40.1% 0.204 282.6);
Tailwind
colors: {
  custom: {
    50: '#8563c8',
    500: '#4222af',
    950: '#000000',
  },
}
SCSS
$custom: #4222af;
$custom-light: #8563c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4222af",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 253.617,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.20359,
    "h": 282.6
  },
  "luminance": 0.05397
}

Semantic roles & 50–950 ramp

primary
#4222AF
secondary
#B1C865
accent
#EA3DC3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4222AF

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

Preview Lab → · Contrast checker → · Palette generator →

#4222AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva