#4027AB#4027AB

#4027AB is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.195 H 281.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#4027AB
RGBrgb(64, 39, 171)
HSLhsl(251, 63%, 41%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(62.6%, 77.2%, 0%, 32.9%)
CIE-LABlab(28.06, 47.59, -66.12)
CIE-LCHlch(28.06, 81.46, 305.75°)
OKLaboklab(40.1% 0.0397 -0.1907)
OKLCHoklch(40.1% 0.195 281.7)
XYZxyz(10.1883, 5.4806, 39.0412)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4027AB #92AB27
analogous
#2750AB #4027AB #8227AB
triadic
#4027AB #AB4027 #27AB40
tetradic
#4027AB #AB2750 #92AB27 #27AB82
square
#4027AB #AB2750 #92AB27 #27AB82
split-complementary
#4027AB #AB8227 #50AB27
monochromatic
#1B1047 #2D1C79 #4027AB #593DD3 #846EDE

Accessibility & contrast

On white

10.02
#4027AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4027AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4027AB#FFFFFF#000000##FFFFFF
##4027AB1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4027ab;
/* rgb */ color: rgb(64, 39, 171);
/* oklch */ color: oklch(40.1% 0.195 281.7);
Tailwind
colors: {
  custom: {
    50: '#8365c5',
    500: '#4027ab',
    950: '#000000',
  },
}
SCSS
$custom: #4027ab;
$custom-light: #8365c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4027ab",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 251.364,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40099,
    "c": 0.1948,
    "h": 281.7
  },
  "luminance": 0.05481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4027AB

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

Preview Lab → · Contrast checker → · Palette generator →

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