#4026AD#4026AD

#4026AD is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.198 H 281.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4026AD
RGBrgb(64, 38, 173)
HSLhsl(252, 64%, 41%)
HSVhsv(252, 78%, 68%)
CMYKcmyk(63%, 78%, 0%, 32.2%)
CIE-LABlab(28.09, 48.69, -67.26)
CIE-LCHlch(28.09, 83.04, 305.90°)
OKLaboklab(40.18% 0.0397 -0.1941)
OKLCHoklch(40.18% 0.198 281.6)
XYZxyz(10.3479, 5.4926, 40.0419)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026AD #93AD26
analogous
#264FAD #4026AD #8426AD
triadic
#4026AD #AD4026 #26AD40
tetradic
#4026AD #AD264F #93AD26 #26AD84
square
#4026AD #AD264F #93AD26 #26AD84
split-complementary
#4026AD #AD8426 #4FAD26
monochromatic
#1B1049 #2D1B7B #4026AD #593CD4 #846EDF

Accessibility & contrast

On white

10.01
#4026AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4026AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4026AD#FFFFFF#000000##FFFFFF
##4026AD1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B1
Deuteranopia (green-blind)
#003DAB
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4026ad;
/* rgb */ color: rgb(64, 38, 173);
/* oklch */ color: oklch(40.2% 0.198 281.6);
Tailwind
colors: {
  custom: {
    50: '#8364c7',
    500: '#4026ad',
    950: '#000000',
  },
}
SCSS
$custom: #4026ad;
$custom-light: #8364c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4026ad",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 251.556,
    "s": 63.981,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40183,
    "c": 0.19808,
    "h": 281.6
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

primary
#4026AD
secondary
#B4C669
accent
#E741C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4026AD

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

Preview Lab → · Contrast checker → · Palette generator →

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