#40283A#40283A

#40283A is a dark, muted pink. Relative luminance 0.029; OKLCH L 31.3% C 0.046 H 336.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#40283A
RGBrgb(64, 40, 58)
HSLhsl(315, 23%, 20%)
HSVhsv(315, 38%, 25%)
CMYKcmyk(0%, 37.5%, 9.4%, 74.9%)
CIE-LABlab(19.69, 14.64, -6.95)
CIE-LCHlch(19.69, 16.20, 334.60°)
OKLaboklab(31.35% 0.0421 -0.0186)
OKLCHoklch(31.35% 0.046 336.2)
XYZxyz(3.6368, 2.9132, 4.3729)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40283A #28402E
analogous
#3A2840 #40283A #40282E
triadic
#40283A #3A4028 #283A40
tetradic
#40283A #403A28 #28402E #282E40
square
#40283A #403A28 #28402E #282E40
split-complementary
#40283A #2E4028 #28403A
monochromatic
#130C11 #1A1018 #40283A #66405C #8B577E

Accessibility & contrast

On white

13.27
#40283A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#40283A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40283A
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40283A#FFFFFF#000000##FFFFFF
##40283A1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282D3B
Deuteranopia (green-blind)
#2E3139
Tritanopia (blue-blind)
#42292E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #40283a;
/* rgb */ color: rgb(64, 40, 58);
/* oklch */ color: oklch(31.3% 0.046 336.2);
Tailwind
colors: {
  custom: {
    50: '#756270',
    500: '#40283a',
    950: '#000000',
  },
}
SCSS
$custom: #40283a;
$custom-light: #756270;
$custom-dark: #000000;
JSON
{
  "hex": "#40283a",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 58
  },
  "hsl": {
    "h": 315,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31347,
    "c": 0.04602,
    "h": 336.2
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#40283A
secondary
#52725A
accent
#C07E68
background
#F7F5F6
surface
#EDEAEC
border
#C8C6C7
text
#080507
muted
#7B797A

Preview Lab

Preview with #40283A

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

Preview Lab → · Contrast checker → · Palette generator →

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