#4022B5#4022B5

#4022B5 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.211 H 280.8°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4022B5
RGBrgb(64, 34, 181)
HSLhsl(252, 68%, 42%)
HSVhsv(252, 81%, 71%)
CMYKcmyk(64.6%, 81.2%, 0%, 29%)
CIE-LABlab(28.30, 52.90, -71.71)
CIE-LCHlch(28.30, 89.11, 306.41°)
OKLaboklab(40.58% 0.0395 -0.207)
OKLCHoklch(40.58% 0.211 280.8)
XYZxyz(11.0242, 5.5694, 44.2012)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022B5 #97B522
analogous
#224EB5 #4022B5 #8A22B5
triadic
#4022B5 #B54022 #22B540
tetradic
#4022B5 #B5224E #97B522 #22B58A
square
#4022B5 #B5224E #97B522 #22B58A
split-complementary
#4022B5 #B58A22 #4EB522
monochromatic
#1C0F4E #2E1881 #4022B5 #5B3ADA #866EE4

Accessibility & contrast

On white

9.93
#4022B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4022B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022B5
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022B5#FFFFFF#000000##FFFFFF
##4022B51.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B9
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#004F6D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4022b5;
/* rgb */ color: rgb(64, 34, 181);
/* oklch */ color: oklch(40.6% 0.211 280.8);
Tailwind
colors: {
  custom: {
    50: '#8563cd',
    500: '#4022b5',
    950: '#000000',
  },
}
SCSS
$custom: #4022b5;
$custom-light: #8563cd;
$custom-dark: #000000;
JSON
{
  "hex": "#4022b5",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 252.245,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.21071,
    "h": 280.8
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#4022B5
secondary
#B6CA69
accent
#EB3DC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4022B5

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

Preview Lab → · Contrast checker → · Palette generator →

#4022B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva