#400338#400338

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

Color values

HEX#400338
RGBrgb(64, 3, 56)
HSLhsl(308, 91%, 13%)
HSVhsv(308, 95%, 25%)
CMYKcmyk(0%, 95.3%, 12.5%, 74.9%)
CIE-LABlab(12.23, 33.86, -17.08)
CIE-LCHlch(12.23, 37.93, 333.24°)
OKLaboklab(25.8% 0.0988 -0.0468)
OKLCHoklch(25.8% 0.109 334.6)
XYZxyz(2.8608, 1.4409, 3.8681)
Luminance0.0144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400338 #03400B
analogous
#290340 #400338 #400319
triadic
#400338 #384003 #033840
tetradic
#400338 #402903 #03400B #031940
square
#400338 #402903 #03400B #031940
split-complementary
#400338 #194003 #034029
monochromatic
#1D011A #1D011A #400338 #7A066B #B5089E

Accessibility & contrast

On white

16.30
#400338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400338
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400338#FFFFFF#000000##FFFFFF
##4003381.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A39
Deuteranopia (green-blind)
#1A2337
Tritanopia (blue-blind)
#44091E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400338;
/* rgb */ color: rgb(64, 3, 56);
/* oklch */ color: oklch(25.8% 0.109 334.6);
Tailwind
colors: {
  custom: {
    50: '#784d6f',
    500: '#400338',
    950: '#000000',
  },
}
SCSS
$custom: #400338;
$custom-light: #784d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#400338",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 307.869,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25801,
    "c": 0.10938,
    "h": 334.6
  },
  "luminance": 0.01441
}

Semantic roles & 50–950 ramp

primary
#400338
secondary
#1D822A
accent
#FF4529
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400338

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

Preview Lab → · Contrast checker → · Palette generator →

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