#4029AB#4029AB

#4029AB is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.193 H 281.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4029AB
RGBrgb(64, 41, 171)
HSLhsl(251, 61%, 42%)
HSVhsv(251, 76%, 67%)
CMYKcmyk(62.6%, 76%, 0%, 32.9%)
CIE-LABlab(28.42, 46.57, -65.53)
CIE-LCHlch(28.42, 80.39, 305.40°)
OKLaboklab(40.35% 0.0384 -0.189)
OKLCHoklch(40.35% 0.193 281.5)
XYZxyz(10.2557, 5.6154, 39.0636)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029AB #94AB29
analogous
#2953AB #4029AB #8129AB
triadic
#4029AB #AB4029 #29AB40
tetradic
#4029AB #AB2953 #94AB29 #29AB81
square
#4029AB #AB2953 #94AB29 #29AB81
split-complementary
#4029AB #AB8129 #53AB29
monochromatic
#1B1148 #2E1D7A #4029AB #5A40D1 #8471DD

Accessibility & contrast

On white

9.89
#4029AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4029AB#FFFFFF#000000##FFFFFF
##4029AB1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4029ab;
/* rgb */ color: rgb(64, 41, 171);
/* oklch */ color: oklch(40.4% 0.193 281.5);
Tailwind
colors: {
  custom: {
    50: '#8366c5',
    500: '#4029ab',
    950: '#000000',
  },
}
SCSS
$custom: #4029ab;
$custom-light: #8366c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4029ab",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 171
  },
  "hsl": {
    "h": 250.615,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40351,
    "c": 0.19288,
    "h": 281.5
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#4029AB
secondary
#B4C46C
accent
#E443C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4029AB

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

Preview Lab → · Contrast checker → · Palette generator →

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