#4029A2#4029A2

#4029A2 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.182 H 282.9°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#4029A2
RGBrgb(64, 41, 162)
HSLhsl(251, 60%, 40%)
HSVhsv(251, 75%, 64%)
CMYKcmyk(60.5%, 74.7%, 0%, 36.5%)
CIE-LABlab(27.53, 43.82, -61.56)
CIE-LCHlch(27.53, 75.56, 305.44°)
OKLaboklab(39.45% 0.0406 -0.1774)
OKLCHoklch(39.45% 0.182 282.9)
XYZxyz(9.4269, 5.2839, 34.6986)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029A2 #8BA229
analogous
#294FA2 #4029A2 #7D29A2
triadic
#4029A2 #A24029 #29A240
tetradic
#4029A2 #A2294F #8BA229 #29A27D
square
#4029A2 #A2294F #8BA229 #29A27D
split-complementary
#4029A2 #A27D29 #4FA229
monochromatic
#191040 #2D1D71 #4029A2 #573BCD #816CDA

Accessibility & contrast

On white

10.21
#4029A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4029A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4029A2#FFFFFF#000000##FFFFFF
##4029A21.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4029a2;
/* rgb */ color: rgb(64, 41, 162);
/* oklch */ color: oklch(39.5% 0.182 282.9);
Tailwind
colors: {
  custom: {
    50: '#8166bf',
    500: '#4029a2',
    950: '#000000',
  },
}
SCSS
$custom: #4029a2;
$custom-light: #8166bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4029a2",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 162
  },
  "hsl": {
    "h": 251.405,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39453,
    "c": 0.18201,
    "h": 282.9
  },
  "luminance": 0.05284
}

Semantic roles & 50–950 ramp

primary
#4029A2
secondary
#AFC067
accent
#E345C5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #4029A2

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

Preview Lab → · Contrast checker → · Palette generator →

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