#4026AA#4026AA

#4026AA is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.195 H 282.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4026AA
RGBrgb(64, 38, 170)
HSLhsl(252, 63%, 41%)
HSVhsv(252, 78%, 67%)
CMYKcmyk(62.4%, 77.6%, 0%, 33.3%)
CIE-LABlab(27.79, 47.79, -65.97)
CIE-LCHlch(27.79, 81.46, 305.92°)
OKLaboklab(39.88% 0.0406 -0.1903)
OKLCHoklch(39.88% 0.195 282)
XYZxyz(10.0609, 5.3778, 38.5303)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026AA #90AA26
analogous
#264EAA #4026AA #8226AA
triadic
#4026AA #AA4026 #26AA40
tetradic
#4026AA #AA264E #90AA26 #26AA82
square
#4026AA #AA264E #90AA26 #26AA82
split-complementary
#4026AA #AA8226 #4EAA26
monochromatic
#1A1046 #2D1B78 #4026AA #583AD3 #836CDE

Accessibility & contrast

On white

10.12
#4026AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4026AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4026AA
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4026AA#FFFFFF#000000##FFFFFF
##4026AA1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.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: #4026aa;
/* rgb */ color: rgb(64, 38, 170);
/* oklch */ color: oklch(39.9% 0.195 282.0);
Tailwind
colors: {
  custom: {
    50: '#8364c5',
    500: '#4026aa',
    950: '#000000',
  },
}
SCSS
$custom: #4026aa;
$custom-light: #8364c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4026aa",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 170
  },
  "hsl": {
    "h": 251.818,
    "s": 63.462,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39875,
    "c": 0.19456,
    "h": 282
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#4026AA
secondary
#B2C567
accent
#E641C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4026AA

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

Preview Lab → · Contrast checker → · Palette generator →

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