#4023A4#4023A4

#4023A4 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.190 H 283.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#4023A4
RGBrgb(64, 35, 164)
HSLhsl(253, 65%, 39%)
HSVhsv(253, 79%, 64%)
CMYKcmyk(61%, 78.7%, 0%, 35.7%)
CIE-LABlab(26.65, 47.49, -64.21)
CIE-LCHlch(26.65, 79.86, 306.48°)
OKLaboklab(38.9% 0.0442 -0.1851)
OKLCHoklch(38.9% 0.19 283.4)
XYZxyz(9.4142, 4.9718, 35.5783)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023A4 #87A423
analogous
#2347A4 #4023A4 #8123A4
triadic
#4023A4 #A44023 #23A440
tetradic
#4023A4 #A42347 #87A423 #23A481
square
#4023A4 #A42347 #87A423 #23A481
split-complementary
#4023A4 #A48123 #47A423
monochromatic
#190D3F #2C1872 #4023A4 #5631D3 #7F64DE

Accessibility & contrast

On white

10.53
#4023A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4023A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023A4
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023A4#FFFFFF#000000##FFFFFF
##4023A41.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4023a4;
/* rgb */ color: rgb(64, 35, 164);
/* oklch */ color: oklch(38.9% 0.190 283.4);
Tailwind
colors: {
  custom: {
    50: '#8262c0',
    500: '#4023a4',
    950: '#000000',
  },
}
SCSS
$custom: #4023a4;
$custom-light: #8262c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4023a4",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 253.488,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.389,
    "c": 0.19032,
    "h": 283.4
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#4023A4
secondary
#ADC360
accent
#E840C2
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4023A4

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

Preview Lab → · Contrast checker → · Palette generator →

#4023A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva