#4028A3#4028A3

#4028A3 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.184 H 282.9°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4028A3
RGBrgb(64, 40, 163)
HSLhsl(252, 61%, 40%)
HSVhsv(252, 75%, 64%)
CMYKcmyk(60.7%, 75.5%, 0%, 36.1%)
CIE-LABlab(27.44, 44.66, -62.31)
CIE-LCHlch(27.44, 76.66, 305.63°)
OKLaboklab(39.42% 0.0411 -0.1796)
OKLCHoklch(39.42% 0.184 282.9)
XYZxyz(9.4820, 5.2513, 35.1572)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028A3 #8BA328
analogous
#284EA3 #4028A3 #7D28A3
triadic
#4028A3 #A34028 #28A340
tetradic
#4028A3 #A3284E #8BA328 #28A37D
square
#4028A3 #A3284E #8BA328 #28A37D
split-complementary
#4028A3 #A37D28 #4EA328
monochromatic
#191041 #2D1C72 #4028A3 #573ACF #816BDB

Accessibility & contrast

On white

10.24
#4028A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4028A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4028A3#FFFFFF#000000##FFFFFF
##4028A31.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4028a3;
/* rgb */ color: rgb(64, 40, 163);
/* oklch */ color: oklch(39.4% 0.184 282.9);
Tailwind
colors: {
  custom: {
    50: '#8165bf',
    500: '#4028a3',
    950: '#000000',
  },
}
SCSS
$custom: #4028a3;
$custom-light: #8165bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4028a3",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 251.707,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3942,
    "c": 0.18426,
    "h": 282.9
  },
  "luminance": 0.05252
}

Semantic roles & 50–950 ramp

primary
#4028A3
secondary
#AFC166
accent
#E444C5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4028A3

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

Preview Lab → · Contrast checker → · Palette generator →

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