#4222B4#4222B4

#4222B4 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.209 H 281.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#4222B4
RGBrgb(66, 34, 180)
HSLhsl(253, 68%, 42%)
HSVhsv(253, 81%, 71%)
CMYKcmyk(63.3%, 81.1%, 0%, 29.4%)
CIE-LABlab(28.37, 52.81, -70.99)
CIE-LCHlch(28.37, 88.48, 306.64°)
OKLaboklab(40.64% 0.0428 -0.2048)
OKLCHoklch(40.64% 0.209 281.8)
XYZxyz(11.0544, 5.5968, 43.6689)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4222B4 #94B422
analogous
#224BB4 #4222B4 #8B22B4
triadic
#4222B4 #B44222 #22B442
tetradic
#4222B4 #B4224B #94B422 #22B48B
square
#4222B4 #B4224B #94B422 #22B48B
split-complementary
#4222B4 #B48B22 #4BB422
monochromatic
#1C0F4D #2F1881 #4222B4 #5D3ADA #876DE3

Accessibility & contrast

On white

9.91
#4222B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4222B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4222B4
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4222B4#FFFFFF#000000##FFFFFF
##4222B41.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4222b4;
/* rgb */ color: rgb(66, 34, 180);
/* oklch */ color: oklch(40.6% 0.209 281.8);
Tailwind
colors: {
  custom: {
    50: '#8663cc',
    500: '#4222b4',
    950: '#000000',
  },
}
SCSS
$custom: #4222b4;
$custom-light: #8663cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4222b4",
  "rgb": {
    "r": 66,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 253.151,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4064,
    "c": 0.20924,
    "h": 281.8
  },
  "luminance": 0.05598
}

Semantic roles & 50–950 ramp

primary
#4222B4
secondary
#B4CA68
accent
#EB3DC5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4222B4

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

Preview Lab → · Contrast checker → · Palette generator →

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