#4028AB#4028AB

#4028AB is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.194 H 281.6°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4028AB
RGBrgb(64, 40, 171)
HSLhsl(251, 62%, 41%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(62.6%, 76.6%, 0%, 32.9%)
CIE-LABlab(28.24, 47.08, -65.82)
CIE-LCHlch(28.24, 80.93, 305.58°)
OKLaboklab(40.22% 0.039 -0.1899)
OKLCHoklch(40.22% 0.194 281.6)
XYZxyz(10.2215, 5.5471, 39.0522)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028AB #93AB28
analogous
#2852AB #4028AB #8228AB
triadic
#4028AB #AB4028 #28AB40
tetradic
#4028AB #AB2852 #93AB28 #28AB82
square
#4028AB #AB2852 #93AB28 #28AB82
split-complementary
#4028AB #AB8228 #52AB28
monochromatic
#1B1148 #2D1C79 #4028AB #593ED2 #8470DE

Accessibility & contrast

On white

9.95
#4028AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4028AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4028AB#FFFFFF#000000##FFFFFF
##4028AB1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4028ab;
/* rgb */ color: rgb(64, 40, 171);
/* oklch */ color: oklch(40.2% 0.194 281.6);
Tailwind
colors: {
  custom: {
    50: '#8365c5',
    500: '#4028ab',
    950: '#000000',
  },
}
SCSS
$custom: #4028ab;
$custom-light: #8365c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4028ab",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 250.992,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.19385,
    "h": 281.6
  },
  "luminance": 0.05548
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4028AB

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

Preview Lab → · Contrast checker → · Palette generator →

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