#4026A4#4026A4

#4026A4 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.187 H 283.0°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4026A4
RGBrgb(64, 38, 164)
HSLhsl(252, 62%, 40%)
HSVhsv(252, 77%, 64%)
CMYKcmyk(61%, 76.8%, 0%, 35.7%)
CIE-LABlab(27.17, 46.00, -63.36)
CIE-LCHlch(27.17, 78.29, 305.98°)
OKLaboklab(39.26% 0.0422 -0.1826)
OKLCHoklch(39.26% 0.187 283)
XYZxyz(9.5062, 5.1559, 35.6090)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026A4 #8AA426
analogous
#264BA4 #4026A4 #7F26A4
triadic
#4026A4 #A44026 #26A440
tetradic
#4026A4 #A4264B #8AA426 #26A47F
square
#4026A4 #A4264B #8AA426 #26A47F
split-complementary
#4026A4 #A47F26 #4BA426
monochromatic
#190F41 #2D1A72 #4026A4 #5637D1 #8068DC

Accessibility & contrast

On white

10.34
#4026A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4026A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4026A4#FFFFFF#000000##FFFFFF
##4026A41.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4026a4;
/* rgb */ color: rgb(64, 38, 164);
/* oklch */ color: oklch(39.3% 0.187 283.0);
Tailwind
colors: {
  custom: {
    50: '#8164c0',
    500: '#4026a4',
    950: '#000000',
  },
}
SCSS
$custom: #4026a4;
$custom-light: #8164c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4026a4",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 252.381,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39264,
    "c": 0.18746,
    "h": 283
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#4026A4
secondary
#AFC264
accent
#E542C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4026A4

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

Preview Lab → · Contrast checker → · Palette generator →

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