#4029AA#4029AA

#4029AA is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.192 H 281.6°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4029AA
RGBrgb(64, 41, 170)
HSLhsl(251, 61%, 41%)
HSVhsv(251, 76%, 67%)
CMYKcmyk(62.4%, 75.9%, 0%, 33.3%)
CIE-LABlab(28.32, 46.26, -65.09)
CIE-LCHlch(28.32, 79.86, 305.40°)
OKLaboklab(40.25% 0.0386 -0.1877)
OKLCHoklch(40.25% 0.192 281.6)
XYZxyz(10.1607, 5.5774, 38.5635)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029AA #93AA29
analogous
#2953AA #4029AA #8129AA
triadic
#4029AA #AA4029 #29AA40
tetradic
#4029AA #AA2953 #93AA29 #29AA81
square
#4029AA #AA2953 #93AA29 #29AA81
split-complementary
#4029AA #AA8129 #53AA29
monochromatic
#1B1147 #2D1D79 #4029AA #593FD1 #8471DD

Accessibility & contrast

On white

9.93
#4029AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4029AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4029AA#FFFFFF#000000##FFFFFF
##4029AA1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4029aa;
/* rgb */ color: rgb(64, 41, 170);
/* oklch */ color: oklch(40.3% 0.192 281.6);
Tailwind
colors: {
  custom: {
    50: '#8266c4',
    500: '#4029aa',
    950: '#000000',
  },
}
SCSS
$custom: #4029aa;
$custom-light: #8266c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4029aa",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 170
  },
  "hsl": {
    "h": 250.698,
    "s": 61.137,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4025,
    "c": 0.19168,
    "h": 281.6
  },
  "luminance": 0.05578
}

Semantic roles & 50–950 ramp

primary
#4029AA
secondary
#B4C46B
accent
#E444C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4029AA

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

Preview Lab → · Contrast checker → · Palette generator →

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