#4023A8#4023A8

#4023A8 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.195 H 282.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4023A8
RGBrgb(64, 35, 168)
HSLhsl(253, 66%, 40%)
HSVhsv(253, 79%, 66%)
CMYKcmyk(61.9%, 79.2%, 0%, 34.1%)
CIE-LABlab(27.07, 48.66, -65.95)
CIE-LCHlch(27.07, 81.96, 306.42°)
OKLaboklab(39.31% 0.043 -0.1902)
OKLCHoklch(39.31% 0.195 282.7)
XYZxyz(9.7811, 5.1185, 37.5107)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4023A8 #8BA823
analogous
#2348A8 #4023A8 #8323A8
triadic
#4023A8 #A84023 #23A840
tetradic
#4023A8 #A82348 #8BA823 #23A883
square
#4023A8 #A82348 #8BA823 #23A883
split-complementary
#4023A8 #A88323 #48A823
monochromatic
#190E43 #2D1875 #4023A8 #5734D5 #8166DF

Accessibility & contrast

On white

10.38
#4023A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4023A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4023A8
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4023A8#FFFFFF#000000##FFFFFF
##4023A81.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4023a8;
/* rgb */ color: rgb(64, 35, 168);
/* oklch */ color: oklch(39.3% 0.195 282.7);
Tailwind
colors: {
  custom: {
    50: '#8263c3',
    500: '#4023a8',
    950: '#000000',
  },
}
SCSS
$custom: #4023a8;
$custom-light: #8263c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4023a8",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 253.083,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39314,
    "c": 0.19498,
    "h": 282.7
  },
  "luminance": 0.05119
}

Semantic roles & 50–950 ramp

primary
#4023A8
secondary
#AFC562
accent
#E83FC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4023A8

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

Preview Lab → · Contrast checker → · Palette generator →

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