#4026A3#4026A3

#4026A3 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.186 H 283.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4026A3
RGBrgb(64, 38, 163)
HSLhsl(252, 62%, 39%)
HSVhsv(252, 77%, 64%)
CMYKcmyk(60.7%, 76.7%, 0%, 36.1%)
CIE-LABlab(27.07, 45.70, -62.92)
CIE-LCHlch(27.07, 77.76, 305.99°)
OKLaboklab(39.16% 0.0425 -0.1814)
OKLCHoklch(39.16% 0.186 283.2)
XYZxyz(9.4163, 5.1199, 35.1353)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026A3 #89A326
analogous
#264BA3 #4026A3 #7F26A3
triadic
#4026A3 #A34026 #26A340
tetradic
#4026A3 #A3264B #89A326 #26A37F
square
#4026A3 #A3264B #89A326 #26A37F
split-complementary
#4026A3 #A37F26 #4BA326
monochromatic
#190F40 #2D1A71 #4026A3 #5636D0 #8068DC

Accessibility & contrast

On white

10.37
#4026A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##4026A3#FFFFFF#000000##FFFFFF
##4026A31.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4026a3;
/* rgb */ color: rgb(64, 38, 163);
/* oklch */ color: oklch(39.2% 0.186 283.2);
Tailwind
colors: {
  custom: {
    50: '#8164bf',
    500: '#4026a3',
    950: '#000000',
  },
}
SCSS
$custom: #4026a3;
$custom-light: #8164bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4026a3",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 252.48,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39163,
    "c": 0.18627,
    "h": 283.2
  },
  "luminance": 0.05121
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4026A3

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

Preview Lab → · Contrast checker → · Palette generator →

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