#40264B#40264B

#40264B is a dark, moderate purple. Relative luminance 0.030; OKLCH L 31.8% C 0.071 H 315.2°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#40264B
RGBrgb(64, 38, 75)
HSLhsl(282, 33%, 22%)
HSVhsv(282, 49%, 29%)
CMYKcmyk(14.7%, 49.3%, 0%, 70.6%)
CIE-LABlab(19.98, 19.94, -18.15)
CIE-LCHlch(19.98, 26.96, 317.70°)
OKLaboklab(31.83% 0.0507 -0.0503)
OKLCHoklch(31.83% 0.071 315.2)
XYZxyz(4.0773, 2.9843, 7.0165)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40264B #314B26
analogous
#2E264B #40264B #4B2644
triadic
#40264B #4B4026 #264B40
tetradic
#40264B #4B2E26 #314B26 #26444B
square
#40264B #4B2E26 #314B26 #26444B
split-complementary
#40264B #444B26 #264B2E
monochromatic
#110A14 #1D1122 #40264B #633B74 #854F9C

Accessibility & contrast

On white

13.15
#40264B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#40264B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40264B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40264B#FFFFFF#000000##FFFFFF
##40264B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2F4C
Deuteranopia (green-blind)
#26314A
Tritanopia (blue-blind)
#3F2B35
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40264b;
/* rgb */ color: rgb(64, 38, 75);
/* oklch */ color: oklch(31.8% 0.071 315.2);
Tailwind
colors: {
  custom: {
    50: '#76617d',
    500: '#40264b',
    950: '#000000',
  },
}
SCSS
$custom: #40264b;
$custom-light: #76617d;
$custom-dark: #000000;
JSON
{
  "hex": "#40264b",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 75
  },
  "hsl": {
    "h": 282.162,
    "s": 32.743,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31834,
    "c": 0.07135,
    "h": 315.2
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#40264B
secondary
#5D7E4F
accent
#C95F7E
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#080509
muted
#7B797B

Preview Lab

Preview with #40264B

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

Preview Lab → · Contrast checker → · Palette generator →

#40264B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva