#4028A8#4028A8

#4028A8 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.190 H 282.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4028A8
RGBrgb(64, 40, 168)
HSLhsl(251, 62%, 41%)
HSVhsv(251, 76%, 66%)
CMYKcmyk(61.9%, 76.2%, 0%, 34.1%)
CIE-LABlab(27.94, 46.18, -64.52)
CIE-LCHlch(27.94, 79.34, 305.59°)
OKLaboklab(39.92% 0.0398 -0.1861)
OKLCHoklch(39.92% 0.19 282.1)
XYZxyz(9.9388, 5.4340, 37.5633)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4028A8 #90A828
analogous
#2850A8 #4028A8 #8028A8
triadic
#4028A8 #A84028 #28A840
tetradic
#4028A8 #A82850 #90A828 #28A880
square
#4028A8 #A82850 #90A828 #28A880
split-complementary
#4028A8 #A88028 #50A828
monochromatic
#1A1045 #2D1C77 #4028A8 #583DD1 #836EDC

Accessibility & contrast

On white

10.06
#4028A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4028A8#FFFFFF#000000##FFFFFF
##4028A81.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4028a8;
/* rgb */ color: rgb(64, 40, 168);
/* oklch */ color: oklch(39.9% 0.190 282.1);
Tailwind
colors: {
  custom: {
    50: '#8265c3',
    500: '#4028a8',
    950: '#000000',
  },
}
SCSS
$custom: #4028a8;
$custom-light: #8265c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4028a8",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 251.25,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3992,
    "c": 0.19027,
    "h": 282.1
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#4028A8
secondary
#B2C369
accent
#E543C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4028A8

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

Preview Lab → · Contrast checker → · Palette generator →

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