#4022B4#4022B4

#4022B4 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.5% C 0.210 H 281.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#4022B4
RGBrgb(64, 34, 180)
HSLhsl(252, 68%, 42%)
HSVhsv(252, 81%, 71%)
CMYKcmyk(64.4%, 81.1%, 0%, 29.4%)
CIE-LABlab(28.19, 52.61, -71.29)
CIE-LCHlch(28.19, 88.60, 306.42°)
OKLaboklab(40.47% 0.0398 -0.2058)
OKLCHoklch(40.47% 0.21 281)
XYZxyz(10.9220, 5.5285, 43.6627)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022B4 #96B422
analogous
#224DB4 #4022B4 #8922B4
triadic
#4022B4 #B44022 #22B440
tetradic
#4022B4 #B4224D #96B422 #22B489
square
#4022B4 #B4224D #96B422 #22B489
split-complementary
#4022B4 #B48922 #4DB422
monochromatic
#1B0F4D #2E1881 #4022B4 #5A3ADA #856DE3

Accessibility & contrast

On white

9.97
#4022B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4022B4
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022B4#FFFFFF#000000##FFFFFF
##4022B41.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4022b4;
/* rgb */ color: rgb(64, 34, 180);
/* oklch */ color: oklch(40.5% 0.210 281.0);
Tailwind
colors: {
  custom: {
    50: '#8563cc',
    500: '#4022b4',
    950: '#000000',
  },
}
SCSS
$custom: #4022b4;
$custom-light: #8563cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4022b4",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 252.329,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4047,
    "c": 0.20958,
    "h": 281
  },
  "luminance": 0.05529
}

Semantic roles & 50–950 ramp

primary
#4022B4
secondary
#B6CA68
accent
#EB3DC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #4022B4

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

Preview Lab → · Contrast checker → · Palette generator →

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