#4028AA#4028AA

#4028AA is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.193 H 281.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4028AA
RGBrgb(64, 40, 170)
HSLhsl(251, 62%, 41%)
HSVhsv(251, 76%, 67%)
CMYKcmyk(62.4%, 76.5%, 0%, 33.3%)
CIE-LABlab(28.14, 46.78, -65.39)
CIE-LCHlch(28.14, 80.40, 305.58°)
OKLaboklab(40.12% 0.0393 -0.1886)
OKLCHoklch(40.12% 0.193 281.8)
XYZxyz(10.1266, 5.5091, 38.5522)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028AA #92AA28
analogous
#2851AA #4028AA #8128AA
triadic
#4028AA #AA4028 #28AA40
tetradic
#4028AA #AA2851 #92AA28 #28AA81
square
#4028AA #AA2851 #92AA28 #28AA81
split-complementary
#4028AA #AA8128 #51AA28
monochromatic
#1B1147 #2D1C78 #4028AA #593ED2 #846FDD

Accessibility & contrast

On white

9.99
#4028AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4028AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4028AA
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4028AA#FFFFFF#000000##FFFFFF
##4028AA1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4028aa;
/* rgb */ color: rgb(64, 40, 170);
/* oklch */ color: oklch(40.1% 0.193 281.8);
Tailwind
colors: {
  custom: {
    50: '#8265c4',
    500: '#4028aa',
    950: '#000000',
  },
}
SCSS
$custom: #4028aa;
$custom-light: #8265c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4028aa",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 251.077,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40122,
    "c": 0.19266,
    "h": 281.8
  },
  "luminance": 0.0551
}

Semantic roles & 50–950 ramp

primary
#4028AA
secondary
#B3C46A
accent
#E543C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4028AA

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

Preview Lab → · Contrast checker → · Palette generator →

#4028AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva