#4027AA#4027AA

#4027AA is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.194 H 281.9°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4027AA
RGBrgb(64, 39, 170)
HSLhsl(251, 63%, 41%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(62.4%, 77.1%, 0%, 33.3%)
CIE-LABlab(27.96, 47.29, -65.68)
CIE-LCHlch(27.96, 80.94, 305.75°)
OKLaboklab(40% 0.0399 -0.1895)
OKLCHoklch(40% 0.194 281.9)
XYZxyz(10.0933, 5.4426, 38.5411)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027AA #91AA27
analogous
#2750AA #4027AA #8127AA
triadic
#4027AA #AA4027 #27AA40
tetradic
#4027AA #AA2750 #91AA27 #27AA81
square
#4027AA #AA2750 #91AA27 #27AA81
split-complementary
#4027AA #AA8127 #50AA27
monochromatic
#1B1046 #2D1C78 #4027AA #593CD2 #836EDE

Accessibility & contrast

On white

10.05
#4027AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4027AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4027AA
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4027AA#FFFFFF#000000##FFFFFF
##4027AA1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4027aa;
/* rgb */ color: rgb(64, 39, 170);
/* oklch */ color: oklch(40.0% 0.194 281.9);
Tailwind
colors: {
  custom: {
    50: '#8265c5',
    500: '#4027aa',
    950: '#000000',
  },
}
SCSS
$custom: #4027aa;
$custom-light: #8265c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4027aa",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 251.45,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39997,
    "c": 0.19362,
    "h": 281.9
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#4027AA
secondary
#B3C469
accent
#E642C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4027AA

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

Preview Lab → · Contrast checker → · Palette generator →

#4027AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva