#4029A5#4029A5

#4029A5 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.186 H 282.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#4029A5
RGBrgb(64, 41, 165)
HSLhsl(251, 60%, 40%)
HSVhsv(251, 75%, 65%)
CMYKcmyk(61.2%, 75.2%, 0%, 35.3%)
CIE-LABlab(27.82, 44.74, -62.89)
CIE-LCHlch(27.82, 77.18, 305.43°)
OKLaboklab(39.75% 0.0399 -0.1813)
OKLCHoklch(39.75% 0.186 282.4)
XYZxyz(9.6967, 5.3918, 36.1198)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029A5 #8EA529
analogous
#2950A5 #4029A5 #7E29A5
triadic
#4029A5 #A54029 #29A540
tetradic
#4029A5 #A52950 #8EA529 #29A57E
square
#4029A5 #A52950 #8EA529 #29A57E
split-complementary
#4029A5 #A57E29 #50A529
monochromatic
#1A1143 #2D1D74 #4029A5 #583DCF #826EDB

Accessibility & contrast

On white

10.10
#4029A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4029A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4029A5#FFFFFF#000000##FFFFFF
##4029A51.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4029a5;
/* rgb */ color: rgb(64, 41, 165);
/* oklch */ color: oklch(39.8% 0.186 282.4);
Tailwind
colors: {
  custom: {
    50: '#8166c1',
    500: '#4029a5',
    950: '#000000',
  },
}
SCSS
$custom: #4029a5;
$custom-light: #8166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4029a5",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 251.129,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3975,
    "c": 0.18566,
    "h": 282.4
  },
  "luminance": 0.05392
}

Semantic roles & 50–950 ramp

primary
#4029A5
secondary
#B1C268
accent
#E344C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4029A5

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

Preview Lab → · Contrast checker → · Palette generator →

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