#4023B4#4023B4

#4023B4 is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.209 H 280.9°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4023B4
RGBrgb(64, 35, 180)
HSLhsl(252, 67%, 42%)
HSVhsv(252, 81%, 71%)
CMYKcmyk(64.4%, 80.6%, 0%, 29.4%)
CIE-LABlab(28.34, 52.16, -71.04)
CIE-LCHlch(28.34, 88.13, 306.29°)
OKLaboklab(40.58% 0.0393 -0.205)
OKLCHoklch(40.58% 0.209 280.9)
XYZxyz(10.9510, 5.5865, 43.6724)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023B4 #97B423
analogous
#234FB4 #4023B4 #8923B4
triadic
#4023B4 #B44023 #23B440
tetradic
#4023B4 #B4234F #97B423 #23B489
square
#4023B4 #B4234F #97B423 #23B489
split-complementary
#4023B4 #B48923 #4FB423
monochromatic
#1C0F4E #2E1981 #4023B4 #5B3BD9 #866EE3

Accessibility & contrast

On white

9.92
#4023B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4023B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023B4
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023B4#FFFFFF#000000##FFFFFF
##4023B41.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4023b4;
/* rgb */ color: rgb(64, 35, 180);
/* oklch */ color: oklch(40.6% 0.209 280.9);
Tailwind
colors: {
  custom: {
    50: '#8563cc',
    500: '#4023b4',
    950: '#000000',
  },
}
SCSS
$custom: #4023b4;
$custom-light: #8563cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4023b4",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 180
  },
  "hsl": {
    "h": 252,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.20877,
    "h": 280.9
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#4023B4
secondary
#B6C969
accent
#EA3DC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #4023B4

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

Preview Lab → · Contrast checker → · Palette generator →

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