#4028AC#4028AC

#4028AC is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.195 H 281.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4028AC
RGBrgb(64, 40, 172)
HSLhsl(251, 62%, 42%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(62.8%, 76.7%, 0%, 32.5%)
CIE-LABlab(28.34, 47.39, -66.26)
CIE-LCHlch(28.34, 81.46, 305.57°)
OKLaboklab(40.33% 0.0388 -0.1911)
OKLCHoklch(40.33% 0.195 281.5)
XYZxyz(10.3172, 5.5854, 39.5561)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028AC #94AC28
analogous
#2852AC #4028AC #8228AC
triadic
#4028AC #AC4028 #28AC40
tetradic
#4028AC #AC2852 #94AC28 #28AC82
square
#4028AC #AC2852 #94AC28 #28AC82
split-complementary
#4028AC #AC8228 #52AC28
monochromatic
#1B1149 #2E1C7A #4028AC #5A3FD2 #8471DE

Accessibility & contrast

On white

9.92
#4028AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4028AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4028AC#FFFFFF#000000##FFFFFF
##4028AC1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4028ac;
/* rgb */ color: rgb(64, 40, 172);
/* oklch */ color: oklch(40.3% 0.195 281.5);
Tailwind
colors: {
  custom: {
    50: '#8365c6',
    500: '#4028ac',
    950: '#000000',
  },
}
SCSS
$custom: #4028ac;
$custom-light: #8365c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4028ac",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 250.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40325,
    "c": 0.19504,
    "h": 281.5
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#4028AC
secondary
#B4C56B
accent
#E542C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4028AC

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

Preview Lab → · Contrast checker → · Palette generator →

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