#40269F#40269F

#40269F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.181 H 283.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#40269F
RGBrgb(64, 38, 159)
HSLhsl(253, 61%, 39%)
HSVhsv(253, 76%, 62%)
CMYKcmyk(59.7%, 76.1%, 0%, 37.6%)
CIE-LABlab(26.67, 44.49, -61.14)
CIE-LCHlch(26.67, 75.62, 306.04°)
OKLaboklab(38.76% 0.0435 -0.1762)
OKLCHoklch(38.76% 0.181 283.9)
XYZxyz(9.0635, 4.9788, 33.2776)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40269F #859F26
analogous
#26489F #40269F #7C269F
triadic
#40269F #9F4026 #269F40
tetradic
#40269F #9F2648 #859F26 #269F7C
square
#40269F #9F2648 #859F26 #269F7C
split-complementary
#40269F #9F7C26 #489F26
monochromatic
#180E3C #2C1A6E #40269F #5534CE #7E65DA

Accessibility & contrast

On white

10.52
#40269F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#40269F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40269F
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40269F#FFFFFF#000000##FFFFFF
##40269F1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#034861
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40269f;
/* rgb */ color: rgb(64, 38, 159);
/* oklch */ color: oklch(38.8% 0.181 283.9);
Tailwind
colors: {
  custom: {
    50: '#8164bc',
    500: '#40269f',
    950: '#000000',
  },
}
SCSS
$custom: #40269f;
$custom-light: #8164bc;
$custom-dark: #000000;
JSON
{
  "hex": "#40269f",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 159
  },
  "hsl": {
    "h": 252.893,
    "s": 61.421,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38762,
    "c": 0.18148,
    "h": 283.9
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#40269F
secondary
#ACC061
accent
#E543C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40269F

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

Preview Lab → · Contrast checker → · Palette generator →

#40269F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva