#4022B1#4022B1

#4022B1 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.2% C 0.206 H 281.4°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4022B1
RGBrgb(64, 34, 177)
HSLhsl(253, 68%, 41%)
HSVhsv(253, 81%, 69%)
CMYKcmyk(63.8%, 80.8%, 0%, 30.6%)
CIE-LABlab(27.87, 51.74, -70.04)
CIE-LCHlch(27.87, 87.08, 306.46°)
OKLaboklab(40.15% 0.0408 -0.2021)
OKLCHoklch(40.15% 0.206 281.4)
XYZxyz(10.6197, 5.4076, 42.0706)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4022B1 #93B122
analogous
#224CB1 #4022B1 #8822B1
triadic
#4022B1 #B14022 #22B140
tetradic
#4022B1 #B1224C #93B122 #22B188
square
#4022B1 #B1224C #93B122 #22B188
split-complementary
#4022B1 #B18822 #4CB122
monochromatic
#1B0E4A #2D187E #4022B1 #5938D9 #846BE3

Accessibility & contrast

On white

10.09
#4022B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4022B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4022B1
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4022B1#FFFFFF#000000##FFFFFF
##4022B11.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4022b1;
/* rgb */ color: rgb(64, 34, 177);
/* oklch */ color: oklch(40.2% 0.206 281.4);
Tailwind
colors: {
  custom: {
    50: '#8463ca',
    500: '#4022b1',
    950: '#000000',
  },
}
SCSS
$custom: #4022b1;
$custom-light: #8463ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4022b1",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 252.587,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4015,
    "c": 0.20617,
    "h": 281.4
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#4022B1
secondary
#B4C966
accent
#EB3DC6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4022B1

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

Preview Lab → · Contrast checker → · Palette generator →

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