#40183F#40183F

#40183F is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.7% C 0.085 H 328.5°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#40183F
RGBrgb(64, 24, 63)
HSLhsl(302, 45%, 17%)
HSVhsv(302, 63%, 25%)
CMYKcmyk(0%, 62.5%, 1.6%, 74.9%)
CIE-LABlab(16.02, 25.74, -16.09)
CIE-LCHlch(16.02, 30.36, 327.99°)
OKLaboklab(28.68% 0.0721 -0.0442)
OKLCHoklch(28.68% 0.085 328.5)
XYZxyz(3.3381, 2.1023, 4.9316)
Luminance0.0210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40183F #184019
analogous
#2D1840 #40183F #40182B
triadic
#40183F #3F4018 #183F40
tetradic
#40183F #402D18 #184019 #182B40
square
#40183F #402D18 #184019 #182B40
split-complementary
#40183F #2B4018 #18402D
monochromatic
#160816 #160816 #40183F #6D296B #993997

Accessibility & contrast

On white

14.78
#40183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#40183F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40183F
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40183F#FFFFFF#000000##FFFFFF
##40183F1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142440
Deuteranopia (green-blind)
#212A3E
Tritanopia (blue-blind)
#421C28
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40183f;
/* rgb */ color: rgb(64, 24, 63);
/* oklch */ color: oklch(28.7% 0.085 328.5);
Tailwind
colors: {
  custom: {
    50: '#765774',
    500: '#40183f',
    950: '#000000',
  },
}
SCSS
$custom: #40183f;
$custom-light: #765774;
$custom-dark: #000000;
JSON
{
  "hex": "#40183f",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 301.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28676,
    "c": 0.08455,
    "h": 328.5
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#40183F
secondary
#3D773F
accent
#D55653
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40183F

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

Preview Lab → · Contrast checker → · Palette generator →

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