#40283D#40283D

#40283D is a dark, muted purple. Relative luminance 0.029; OKLCH L 31.5% C 0.049 H 331.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#40283D
RGBrgb(64, 40, 61)
HSLhsl(308, 23%, 20%)
HSVhsv(308, 38%, 25%)
CMYKcmyk(0%, 37.5%, 4.7%, 74.9%)
CIE-LABlab(19.82, 15.29, -8.83)
CIE-LCHlch(19.82, 17.66, 330.01°)
OKLaboklab(31.49% 0.0432 -0.0238)
OKLCHoklch(31.49% 0.049 331.1)
XYZxyz(3.7154, 2.9446, 4.7866)
Luminance0.0294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40283D #28402B
analogous
#372840 #40283D #402831
triadic
#40283D #3D4028 #283D40
tetradic
#40283D #403728 #28402B #283140
square
#40283D #403728 #28402B #283140
split-complementary
#40283D #314028 #284037
monochromatic
#130C12 #1A1019 #40283D #664061 #8B5785

Accessibility & contrast

On white

13.22
#40283D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#40283D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40283D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40283D#FFFFFF#000000##FFFFFF
##40283D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272E3E
Deuteranopia (green-blind)
#2D313C
Tritanopia (blue-blind)
#422930
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40283d;
/* rgb */ color: rgb(64, 40, 61);
/* oklch */ color: oklch(31.5% 0.049 331.1);
Tailwind
colors: {
  custom: {
    50: '#756272',
    500: '#40283d',
    950: '#000000',
  },
}
SCSS
$custom: #40283d;
$custom-light: #756272;
$custom-dark: #000000;
JSON
{
  "hex": "#40283d",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 61
  },
  "hsl": {
    "h": 307.5,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31486,
    "c": 0.0493,
    "h": 331.1
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#40283D
secondary
#527256
accent
#C07368
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080508
muted
#7B797B

Preview Lab

Preview with #40283D

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

Preview Lab → · Contrast checker → · Palette generator →

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