#40283F#40283F

#40283F is a dark, muted purple. Relative luminance 0.030; OKLCH L 31.6% C 0.052 H 328.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#40283F
RGBrgb(64, 40, 63)
HSLhsl(303, 23%, 20%)
HSVhsv(303, 38%, 25%)
CMYKcmyk(0%, 37.5%, 1.6%, 74.9%)
CIE-LABlab(19.91, 15.74, -10.07)
CIE-LCHlch(19.91, 18.68, 327.40°)
OKLaboklab(31.58% 0.0439 -0.0272)
OKLCHoklch(31.58% 0.052 328.1)
XYZxyz(3.7703, 2.9666, 5.0757)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40283F #284029
analogous
#352840 #40283F #402833
triadic
#40283F #3F4028 #283F40
tetradic
#40283F #403528 #284029 #283340
square
#40283F #403528 #284029 #283340
split-complementary
#40283F #334028 #284035
monochromatic
#130C13 #1A101A #40283F #664064 #8B5789

Accessibility & contrast

On white

13.18
#40283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40283F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40283F#FFFFFF#000000##FFFFFF
##40283F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272E40
Deuteranopia (green-blind)
#2D313E
Tritanopia (blue-blind)
#422A30
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40283f;
/* rgb */ color: rgb(64, 40, 63);
/* oklch */ color: oklch(31.6% 0.052 328.1);
Tailwind
colors: {
  custom: {
    50: '#756274',
    500: '#40283f',
    950: '#000000',
  },
}
SCSS
$custom: #40283f;
$custom-light: #756274;
$custom-dark: #000000;
JSON
{
  "hex": "#40283f",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 302.5,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31583,
    "c": 0.05164,
    "h": 328.1
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#40283F
secondary
#527253
accent
#C06C68
background
#F7F5F7
surface
#EDEAED
border
#C8C6C8
text
#080508
muted
#7B797B

Preview Lab

Preview with #40283F

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

Preview Lab → · Contrast checker → · Palette generator →

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