#400337#400337

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

Color values

HEX#400337
RGBrgb(64, 3, 55)
HSLhsl(309, 91%, 13%)
HSVhsv(309, 95%, 25%)
CMYKcmyk(0%, 95.3%, 14.1%, 74.9%)
CIE-LABlab(12.16, 33.70, -16.46)
CIE-LCHlch(12.16, 37.50, 333.97°)
OKLaboklab(25.74% 0.0988 -0.0451)
OKLCHoklch(25.74% 0.109 335.5)
XYZxyz(2.8366, 1.4312, 3.7406)
Luminance0.0143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400337 #03400C
analogous
#2A0340 #400337 #400318
triadic
#400337 #374003 #033740
tetradic
#400337 #402A03 #03400C #031840
square
#400337 #402A03 #03400C #031840
split-complementary
#400337 #184003 #03402A
monochromatic
#1D0119 #1D0119 #400337 #7A0669 #B5089B

Accessibility & contrast

On white

16.33
#400337 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400337
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400337#FFFFFF#000000##FFFFFF
##4003371.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031A38
Deuteranopia (green-blind)
#1B2336
Tritanopia (blue-blind)
#44081D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400337;
/* rgb */ color: rgb(64, 3, 55);
/* oklch */ color: oklch(25.7% 0.109 335.5);
Tailwind
colors: {
  custom: {
    50: '#784d6e',
    500: '#400337',
    950: '#000000',
  },
}
SCSS
$custom: #400337;
$custom-light: #784d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#400337",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 55
  },
  "hsl": {
    "h": 308.852,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.25735,
    "c": 0.10861,
    "h": 335.5
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#400337
secondary
#1D822C
accent
#FF4829
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400337

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

Preview Lab → · Contrast checker → · Palette generator →

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