#40269A#40269A

#40269A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.175 H 284.8°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#40269A
RGBrgb(64, 38, 154)
HSLhsl(253, 60%, 38%)
HSVhsv(253, 75%, 60%)
CMYKcmyk(58.4%, 75.3%, 0%, 39.6%)
CIE-LABlab(26.18, 42.98, -58.90)
CIE-LCHlch(26.18, 72.91, 306.12°)
OKLaboklab(38.27% 0.0448 -0.1696)
OKLCHoklch(38.27% 0.175 284.8)
XYZxyz(8.6384, 4.8088, 31.0386)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40269A #809A26
analogous
#26469A #40269A #7A269A
triadic
#40269A #9A4026 #269A40
tetradic
#40269A #9A2646 #809A26 #269A7A
square
#40269A #9A2646 #809A26 #269A7A
split-complementary
#40269A #9A7A26 #469A26
monochromatic
#170E38 #2C1A69 #40269A #5432CB #7D62D8

Accessibility & contrast

On white

10.70
#40269A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#40269A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40269A
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40269A#FFFFFF#000000##FFFFFF
##40269A1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#10465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #40269a;
/* rgb */ color: rgb(64, 38, 154);
/* oklch */ color: oklch(38.3% 0.175 284.8);
Tailwind
colors: {
  custom: {
    50: '#8063b9',
    500: '#40269a',
    950: '#000000',
  },
}
SCSS
$custom: #40269a;
$custom-light: #8063b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40269a",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 154
  },
  "hsl": {
    "h": 253.448,
    "s": 60.417,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38267,
    "c": 0.17543,
    "h": 284.8
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#40269A
secondary
#A8BE5E
accent
#E444C0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #40269A

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

Preview Lab → · Contrast checker → · Palette generator →

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