#4027AD#4027AD

#4027AD is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.197 H 281.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#4027AD
RGBrgb(64, 39, 173)
HSLhsl(251, 63%, 42%)
HSVhsv(251, 77%, 68%)
CMYKcmyk(63%, 77.5%, 0%, 32.2%)
CIE-LABlab(28.27, 48.19, -66.98)
CIE-LCHlch(28.27, 82.51, 305.73°)
OKLaboklab(40.3% 0.0391 -0.1932)
OKLCHoklch(40.3% 0.197 281.4)
XYZxyz(10.3803, 5.5574, 40.0527)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027AD #94AD27
analogous
#2751AD #4027AD #8327AD
triadic
#4027AD #AD4027 #27AD40
tetradic
#4027AD #AD2751 #94AD27 #27AD83
square
#4027AD #AD2751 #94AD27 #27AD83
split-complementary
#4027AD #AD8327 #51AD27
monochromatic
#1B1049 #2E1C7B #4027AD #5A3ED3 #8470DF

Accessibility & contrast

On white

9.95
#4027AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4027AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4027AD#FFFFFF#000000##FFFFFF
##4027AD1.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)
#0047B1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4027ad;
/* rgb */ color: rgb(64, 39, 173);
/* oklch */ color: oklch(40.3% 0.197 281.4);
Tailwind
colors: {
  custom: {
    50: '#8365c7',
    500: '#4027ad',
    950: '#000000',
  },
}
SCSS
$custom: #4027ad;
$custom-light: #8365c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4027ad",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 251.194,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40304,
    "c": 0.19716,
    "h": 281.4
  },
  "luminance": 0.05558
}

Semantic roles & 50–950 ramp

primary
#4027AD
secondary
#B4C66A
accent
#E642C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4027AD

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

Preview Lab → · Contrast checker → · Palette generator →

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