#4026AF#4026AF

#4026AF is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.4% C 0.200 H 281.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4026AF
RGBrgb(64, 38, 175)
HSLhsl(251, 64%, 42%)
HSVhsv(251, 78%, 69%)
CMYKcmyk(63.4%, 78.3%, 0%, 31.4%)
CIE-LABlab(28.30, 49.28, -68.12)
CIE-LCHlch(28.30, 84.08, 305.88°)
OKLaboklab(40.39% 0.0392 -0.1966)
OKLCHoklch(40.39% 0.2 281.3)
XYZxyz(10.5429, 5.5706, 41.0688)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4026AF #95AF26
analogous
#2651AF #4026AF #8526AF
triadic
#4026AF #AF4026 #26AF40
tetradic
#4026AF #AF2651 #95AF26 #26AF85
square
#4026AF #AF2651 #95AF26 #26AF85
split-complementary
#4026AF #AF8526 #51AF26
monochromatic
#1B104A #2E1B7D #4026AF #5A3DD5 #8570E0

Accessibility & contrast

On white

9.93
#4026AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4026AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4026AF#FFFFFF#000000##FFFFFF
##4026AF1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4026af;
/* rgb */ color: rgb(64, 38, 175);
/* oklch */ color: oklch(40.4% 0.200 281.3);
Tailwind
colors: {
  custom: {
    50: '#8465c8',
    500: '#4026af',
    950: '#000000',
  },
}
SCSS
$custom: #4026af;
$custom-light: #8465c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4026af",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 251.387,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4039,
    "c": 0.20042,
    "h": 281.3
  },
  "luminance": 0.05571
}

Semantic roles & 50–950 ramp

primary
#4026AF
secondary
#B5C76A
accent
#E740C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4026AF

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

Preview Lab → · Contrast checker → · Palette generator →

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