#40264D#40264D

#40264D is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.0% C 0.074 H 313.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#40264D
RGBrgb(64, 38, 77)
HSLhsl(280, 34%, 23%)
HSVhsv(280, 51%, 30%)
CMYKcmyk(16.9%, 50.6%, 0%, 69.8%)
CIE-LABlab(20.09, 20.45, -19.33)
CIE-LCHlch(20.09, 28.14, 316.62°)
OKLaboklab(31.95% 0.051 -0.0537)
OKLCHoklch(31.95% 0.074 313.6)
XYZxyz(4.1468, 3.0121, 7.3827)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40264D #334D26
analogous
#2C264D #40264D #4D2646
triadic
#40264D #4D4026 #264D40
tetradic
#40264D #4D2C26 #334D26 #26464D
square
#40264D #4D2C26 #334D26 #26464D
split-complementary
#40264D #464D26 #264D2C
monochromatic
#110A14 #1E1224 #40264D #623A76 #844E9F

Accessibility & contrast

On white

13.11
#40264D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40264D
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40264D#FFFFFF#000000##FFFFFF
##40264D1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2F4E
Deuteranopia (green-blind)
#25314C
Tritanopia (blue-blind)
#3F2C35
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40264d;
/* rgb */ color: rgb(64, 38, 77);
/* oklch */ color: oklch(32.0% 0.074 313.6);
Tailwind
colors: {
  custom: {
    50: '#76617f',
    500: '#40264d',
    950: '#000000',
  },
}
SCSS
$custom: #40264d;
$custom-light: #76617f;
$custom-dark: #000000;
JSON
{
  "hex": "#40264d",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 77
  },
  "hsl": {
    "h": 280,
    "s": 33.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31954,
    "c": 0.07406,
    "h": 313.6
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#40264D
secondary
#5F804F
accent
#CA5E82
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08050A
muted
#7B797C

Preview Lab

Preview with #40264D

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

Preview Lab → · Contrast checker → · Palette generator →

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