#4022B3#4022B3

#4022B3 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.4% C 0.208 H 281.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4022B3
RGBrgb(64, 34, 179)
HSLhsl(252, 68%, 42%)
HSVhsv(252, 81%, 70%)
CMYKcmyk(64.2%, 81%, 0%, 29.8%)
CIE-LABlab(28.08, 52.32, -70.88)
CIE-LCHlch(28.08, 88.10, 306.43°)
OKLaboklab(40.36% 0.0402 -0.2045)
OKLCHoklch(40.36% 0.208 281.1)
XYZxyz(10.8205, 5.4879, 43.1281)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022B3 #95B322
analogous
#224DB3 #4022B3 #8922B3
triadic
#4022B3 #B34022 #22B340
tetradic
#4022B3 #B3224D #95B322 #22B389
square
#4022B3 #B3224D #95B322 #22B389
split-complementary
#4022B3 #B38922 #4DB322
monochromatic
#1B0E4C #2E1880 #4022B3 #5A39D9 #856CE3

Accessibility & contrast

On white

10.01
#4022B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4022B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022B3
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022B3#FFFFFF#000000##FFFFFF
##4022B31.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B7
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4022b3;
/* rgb */ color: rgb(64, 34, 179);
/* oklch */ color: oklch(40.4% 0.208 281.1);
Tailwind
colors: {
  custom: {
    50: '#8563cb',
    500: '#4022b3',
    950: '#000000',
  },
}
SCSS
$custom: #4022b3;
$custom-light: #8563cb;
$custom-dark: #000000;
JSON
{
  "hex": "#4022b3",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 252.414,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40363,
    "c": 0.20844,
    "h": 281.1
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

primary
#4022B3
secondary
#B5C968
accent
#EB3DC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4022B3

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

Preview Lab → · Contrast checker → · Palette generator →

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