#4023B0#4023B0

#4023B0 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.2% C 0.204 H 281.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#4023B0
RGBrgb(64, 35, 176)
HSLhsl(252, 67%, 41%)
HSVhsv(252, 80%, 69%)
CMYKcmyk(63.6%, 80.1%, 0%, 31%)
CIE-LABlab(27.91, 51.00, -69.36)
CIE-LCHlch(27.91, 86.09, 306.33°)
OKLaboklab(40.15% 0.0406 -0.2001)
OKLCHoklch(40.15% 0.204 281.5)
XYZxyz(10.5494, 5.4258, 41.5573)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023B0 #93B023
analogous
#234DB0 #4023B0 #8723B0
triadic
#4023B0 #B04023 #23B040
tetradic
#4023B0 #B0234D #93B023 #23B087
square
#4023B0 #B0234D #93B023 #23B087
split-complementary
#4023B0 #B08723 #4DB023
monochromatic
#1B0F4A #2D197D #4023B0 #5939D8 #846CE2

Accessibility & contrast

On white

10.07
#4023B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4023B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023B0
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023B0#FFFFFF#000000##FFFFFF
##4023B01.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B4
Deuteranopia (green-blind)
#003DAE
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4023b0;
/* rgb */ color: rgb(64, 35, 176);
/* oklch */ color: oklch(40.2% 0.204 281.5);
Tailwind
colors: {
  custom: {
    50: '#8463c9',
    500: '#4023b0',
    950: '#000000',
  },
}
SCSS
$custom: #4023b0;
$custom-light: #8463c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4023b0",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 176
  },
  "hsl": {
    "h": 252.34,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40152,
    "c": 0.2042,
    "h": 281.5
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#4023B0
secondary
#B4C867
accent
#EA3EC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4023B0

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

Preview Lab → · Contrast checker → · Palette generator →

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