#4029A8#4029A8

#4029A8 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.189 H 281.9°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#4029A8
RGBrgb(64, 41, 168)
HSLhsl(251, 61%, 41%)
HSVhsv(251, 76%, 66%)
CMYKcmyk(61.9%, 75.6%, 0%, 34.1%)
CIE-LABlab(28.12, 45.66, -64.21)
CIE-LCHlch(28.12, 78.79, 305.41°)
OKLaboklab(40.05% 0.0391 -0.1852)
OKLCHoklch(40.05% 0.189 281.9)
XYZxyz(9.9730, 5.5023, 37.5747)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4029A8 #91A829
analogous
#2951A8 #4029A8 #7F29A8
triadic
#4029A8 #A84029 #29A840
tetradic
#4029A8 #A82951 #91A829 #29A87F
square
#4029A8 #A82951 #91A829 #29A87F
split-complementary
#4029A8 #A87F29 #51A829
monochromatic
#1B1146 #2D1D77 #4029A8 #593ED0 #836FDC

Accessibility & contrast

On white

10.00
#4029A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4029A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4029A8#FFFFFF#000000##FFFFFF
##4029A81.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4029a8;
/* rgb */ color: rgb(64, 41, 168);
/* oklch */ color: oklch(40.0% 0.189 281.9);
Tailwind
colors: {
  custom: {
    50: '#8266c3',
    500: '#4029a8',
    950: '#000000',
  },
}
SCSS
$custom: #4029a8;
$custom-light: #8266c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4029a8",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 168
  },
  "hsl": {
    "h": 250.866,
    "s": 60.766,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40049,
    "c": 0.18928,
    "h": 281.9
  },
  "luminance": 0.05503
}

Semantic roles & 50–950 ramp

primary
#4029A8
secondary
#B3C36A
accent
#E444C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4029A8

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

Preview Lab → · Contrast checker → · Palette generator →

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