#4026A2#4026A2

#4026A2 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.185 H 283.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4026A2
RGBrgb(64, 38, 162)
HSLhsl(253, 62%, 39%)
HSVhsv(253, 77%, 64%)
CMYKcmyk(60.5%, 76.5%, 0%, 36.5%)
CIE-LABlab(26.97, 45.39, -62.47)
CIE-LCHlch(26.97, 77.22, 306.00°)
OKLaboklab(39.06% 0.0427 -0.1801)
OKLCHoklch(39.06% 0.185 283.3)
XYZxyz(9.3270, 5.0842, 34.6653)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026A2 #88A226
analogous
#264AA2 #4026A2 #7E26A2
triadic
#4026A2 #A24026 #26A240
tetradic
#4026A2 #A2264A #88A226 #26A27E
square
#4026A2 #A2264A #88A226 #26A27E
split-complementary
#4026A2 #A27E26 #4AA226
monochromatic
#190F3F #2C1A70 #4026A2 #5635D0 #7F67DB

Accessibility & contrast

On white

10.41
#4026A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4026A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4026A2#FFFFFF#000000##FFFFFF
##4026A21.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#003CA0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4026a2;
/* rgb */ color: rgb(64, 38, 162);
/* oklch */ color: oklch(39.1% 0.185 283.3);
Tailwind
colors: {
  custom: {
    50: '#8164bf',
    500: '#4026a2',
    950: '#000000',
  },
}
SCSS
$custom: #4026a2;
$custom-light: #8164bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4026a2",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 252.581,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39062,
    "c": 0.18508,
    "h": 283.3
  },
  "luminance": 0.05085
}

Semantic roles & 50–950 ramp

primary
#4026A2
secondary
#ADC163
accent
#E543C3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4026A2

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

Preview Lab → · Contrast checker → · Palette generator →

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