#4029AC#4029AC

#4029AC is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.194 H 281.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4029AC
RGBrgb(64, 41, 172)
HSLhsl(251, 62%, 42%)
HSVhsv(251, 76%, 67%)
CMYKcmyk(62.8%, 76.2%, 0%, 32.5%)
CIE-LABlab(28.52, 46.87, -65.96)
CIE-LCHlch(28.52, 80.92, 305.40°)
OKLaboklab(40.45% 0.0381 -0.1903)
OKLCHoklch(40.45% 0.194 281.3)
XYZxyz(10.3513, 5.6537, 39.5675)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029AC #95AC29
analogous
#2954AC #4029AC #8229AC
triadic
#4029AC #AC4029 #29AC40
tetradic
#4029AC #AC2954 #95AC29 #29AC82
square
#4029AC #AC2954 #95AC29 #29AC82
split-complementary
#4029AC #AC8229 #54AC29
monochromatic
#1B1149 #2E1D7B #4029AC #5A41D2 #8572DD

Accessibility & contrast

On white

9.86
#4029AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4029AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4029AC#FFFFFF#000000##FFFFFF
##4029AC1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4029ac;
/* rgb */ color: rgb(64, 41, 172);
/* oklch */ color: oklch(40.5% 0.194 281.3);
Tailwind
colors: {
  custom: {
    50: '#8366c6',
    500: '#4029ac',
    950: '#000000',
  },
}
SCSS
$custom: #4029ac;
$custom-light: #8366c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4029ac",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 172
  },
  "hsl": {
    "h": 250.534,
    "s": 61.502,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40452,
    "c": 0.19407,
    "h": 281.3
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#4029AC
secondary
#B5C56C
accent
#E543C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4029AC

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

Preview Lab → · Contrast checker → · Palette generator →

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