#400236#400236

#400236 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.6% C 0.109 H 336.3°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#400236
RGBrgb(64, 2, 54)
HSLhsl(310, 94%, 13%)
HSVhsv(310, 97%, 25%)
CMYKcmyk(0%, 96.9%, 15.6%, 74.9%)
CIE-LABlab(11.96, 33.95, -16.06)
CIE-LCHlch(11.96, 37.56, 334.69°)
OKLaboklab(25.57% 0.1 -0.0439)
OKLCHoklch(25.57% 0.109 336.3)
XYZxyz(2.8020, 1.4000, 3.6120)
Luminance0.0140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400236 #02400C
analogous
#2B0240 #400236 #400217
triadic
#400236 #364002 #023640
tetradic
#400236 #402B02 #02400C #021740
square
#400236 #402B02 #02400C #021740
split-complementary
#400236 #174002 #02402B
monochromatic
#1E0119 #1E0119 #400236 #7B0468 #B7069A

Accessibility & contrast

On white

16.41
#400236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400236
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400236#FFFFFF#000000##FFFFFF
##4002361.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031937
Deuteranopia (green-blind)
#1B2335
Tritanopia (blue-blind)
#44071C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400236;
/* rgb */ color: rgb(64, 2, 54);
/* oklch */ color: oklch(25.6% 0.109 336.3);
Tailwind
colors: {
  custom: {
    50: '#784c6d',
    500: '#400236',
    950: '#000000',
  },
}
SCSS
$custom: #400236;
$custom-light: #784c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#400236",
  "rgb": {
    "r": 64,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 309.677,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.25568,
    "c": 0.10924,
    "h": 336.3
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#400236
secondary
#1B832C
accent
#FF4B29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090107
muted
#7B777A

Preview Lab

Preview with #400236

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

Preview Lab → · Contrast checker → · Palette generator →

#400236 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva