#4024A8#4024A8

#4024A8 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.194 H 282.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4024A8
RGBrgb(64, 36, 168)
HSLhsl(253, 65%, 40%)
HSVhsv(253, 79%, 66%)
CMYKcmyk(61.9%, 78.6%, 0%, 34.1%)
CIE-LABlab(27.24, 48.18, -65.67)
CIE-LCHlch(27.24, 81.45, 306.27°)
OKLaboklab(39.43% 0.0424 -0.1894)
OKLCHoklch(39.43% 0.194 282.6)
XYZxyz(9.8109, 5.1782, 37.5207)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4024A8 #8CA824
analogous
#244AA8 #4024A8 #8224A8
triadic
#4024A8 #A84024 #24A840
tetradic
#4024A8 #A8244A #8CA824 #24A882
square
#4024A8 #A8244A #8CA824 #24A882
split-complementary
#4024A8 #A88224 #4AA824
monochromatic
#1A0E43 #2D1976 #4024A8 #5735D4 #8168DF

Accessibility & contrast

On white

10.32
#4024A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4024A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4024A8
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4024A8#FFFFFF#000000##FFFFFF
##4024A81.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4024a8;
/* rgb */ color: rgb(64, 36, 168);
/* oklch */ color: oklch(39.4% 0.194 282.6);
Tailwind
colors: {
  custom: {
    50: '#8263c3',
    500: '#4024a8',
    950: '#000000',
  },
}
SCSS
$custom: #4024a8;
$custom-light: #8263c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4024a8",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 252.727,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.3943,
    "c": 0.19407,
    "h": 282.6
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#4024A8
secondary
#B0C463
accent
#E840C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4024A8

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

Preview Lab → · Contrast checker → · Palette generator →

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