#40283E#40283E

#40283E is a dark, muted purple. Relative luminance 0.030; OKLCH L 31.5% C 0.050 H 329.6°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#40283E
RGBrgb(64, 40, 62)
HSLhsl(305, 23%, 20%)
HSVhsv(305, 38%, 25%)
CMYKcmyk(0%, 37.5%, 3.1%, 74.9%)
CIE-LABlab(19.86, 15.51, -9.45)
CIE-LCHlch(19.86, 18.16, 328.66°)
OKLaboklab(31.53% 0.0435 -0.0255)
OKLCHoklch(31.53% 0.05 329.6)
XYZxyz(3.7426, 2.9555, 4.9298)
Luminance0.0295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40283E #28402A
analogous
#362840 #40283E #402832
triadic
#40283E #3E4028 #283E40
tetradic
#40283E #403628 #28402A #283240
square
#40283E #403628 #28402A #283240
split-complementary
#40283E #324028 #284036
monochromatic
#130C12 #1A101A #40283E #664062 #8B5787

Accessibility & contrast

On white

13.20
#40283E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40283E
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40283E#FFFFFF#000000##FFFFFF
##40283E1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40283e;
/* rgb */ color: rgb(64, 40, 62);
/* oklch */ color: oklch(31.5% 0.050 329.6);
Tailwind
colors: {
  custom: {
    50: '#756273',
    500: '#40283e',
    950: '#000000',
  },
}
SCSS
$custom: #40283e;
$custom-light: #756273;
$custom-dark: #000000;
JSON
{
  "hex": "#40283e",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 62
  },
  "hsl": {
    "h": 305,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31534,
    "c": 0.05046,
    "h": 329.6
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#40283E
secondary
#527255
accent
#C07068
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080508
muted
#7B797B

Preview Lab

Preview with #40283E

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

Preview Lab → · Contrast checker → · Palette generator →

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