#4028A9#4028A9

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

Color values

HEX#4028A9
RGBrgb(64, 40, 169)
HSLhsl(251, 62%, 41%)
HSVhsv(251, 76%, 66%)
CMYKcmyk(62.1%, 76.3%, 0%, 33.7%)
CIE-LABlab(28.04, 46.48, -64.95)
CIE-LCHlch(28.04, 79.87, 305.59°)
OKLaboklab(40.02% 0.0395 -0.1873)
OKLCHoklch(40.02% 0.191 281.9)
XYZxyz(10.0323, 5.4714, 38.0558)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028A9 #91A928
analogous
#2850A9 #4028A9 #8028A9
triadic
#4028A9 #A94028 #28A940
tetradic
#4028A9 #A92850 #91A928 #28A980
square
#4028A9 #A92850 #91A928 #28A980
split-complementary
#4028A9 #A98028 #50A928
monochromatic
#1B1146 #2D1C78 #4028A9 #593DD1 #836FDD

Accessibility & contrast

On white

10.03
#4028A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4028A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4028A9#FFFFFF#000000##FFFFFF
##4028A91.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4028a9;
/* rgb */ color: rgb(64, 40, 169);
/* oklch */ color: oklch(40.0% 0.191 281.9);
Tailwind
colors: {
  custom: {
    50: '#8265c4',
    500: '#4028a9',
    950: '#000000',
  },
}
SCSS
$custom: #4028a9;
$custom-light: #8265c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4028a9",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 251.163,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40021,
    "c": 0.19147,
    "h": 281.9
  },
  "luminance": 0.05472
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4028A9

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

Preview Lab → · Contrast checker → · Palette generator →

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