#4029A4#4029A4

#4029A4 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.184 H 282.6°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#4029A4
RGBrgb(64, 41, 164)
HSLhsl(251, 60%, 40%)
HSVhsv(251, 75%, 64%)
CMYKcmyk(61%, 75%, 0%, 35.7%)
CIE-LABlab(27.72, 44.43, -62.45)
CIE-LCHlch(27.72, 76.64, 305.43°)
OKLaboklab(39.65% 0.0401 -0.18)
OKLCHoklch(39.65% 0.184 282.6)
XYZxyz(9.6060, 5.3555, 35.6423)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029A4 #8DA429
analogous
#294FA4 #4029A4 #7E29A4
triadic
#4029A4 #A44029 #29A440
tetradic
#4029A4 #A4294F #8DA429 #29A47E
square
#4029A4 #A4294F #8DA429 #29A47E
split-complementary
#4029A4 #A47E29 #4FA429
monochromatic
#1A1142 #2D1D73 #4029A4 #573CCE #816DDA

Accessibility & contrast

On white

10.14
#4029A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4029A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4029A4
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4029A4#FFFFFF#000000##FFFFFF
##4029A41.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4029a4;
/* rgb */ color: rgb(64, 41, 164);
/* oklch */ color: oklch(39.7% 0.184 282.6);
Tailwind
colors: {
  custom: {
    50: '#8166c0',
    500: '#4029a4',
    950: '#000000',
  },
}
SCSS
$custom: #4029a4;
$custom-light: #8166c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4029a4",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 164
  },
  "hsl": {
    "h": 251.22,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39651,
    "c": 0.18444,
    "h": 282.6
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#4029A4
secondary
#B0C168
accent
#E345C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4029A4

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

Preview Lab → · Contrast checker → · Palette generator →

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