#40103A#40103A

#40103A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.3% C 0.093 H 333.2°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#40103A
RGBrgb(64, 16, 58)
HSLhsl(308, 60%, 16%)
HSVhsv(308, 75%, 25%)
CMYKcmyk(0%, 75%, 9.4%, 74.9%)
CIE-LABlab(14.21, 28.91, -15.39)
CIE-LCHlch(14.21, 32.75, 331.96°)
OKLaboklab(27.27% 0.0833 -0.0421)
OKLCHoklch(27.27% 0.093 333.2)
XYZxyz(3.0634, 1.7663, 4.1818)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40103A #104016
analogous
#2E1040 #40103A #401022
triadic
#40103A #3A4010 #103A40
tetradic
#40103A #402E10 #104016 #102240
square
#40103A #402E10 #104016 #102240
split-complementary
#40103A #224010 #10402E
monochromatic
#180616 #180616 #40103A #711C66 #A22893

Accessibility & contrast

On white

15.52
#40103A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#40103A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40103A
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40103A#FFFFFF#000000##FFFFFF
##40103A1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F203B
Deuteranopia (green-blind)
#1F2739
Tritanopia (blue-blind)
#431423
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40103a;
/* rgb */ color: rgb(64, 16, 58);
/* oklch */ color: oklch(27.3% 0.093 333.2);
Tailwind
colors: {
  custom: {
    50: '#775370',
    500: '#40103a',
    950: '#000000',
  },
}
SCSS
$custom: #40103a;
$custom-light: #775370;
$custom-dark: #000000;
JSON
{
  "hex": "#40103a",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 58
  },
  "hsl": {
    "h": 307.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27265,
    "c": 0.09339,
    "h": 333.2
  },
  "luminance": 0.01766
}

Semantic roles & 50–950 ramp

primary
#40103A
secondary
#327A3B
accent
#E35845
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40103A

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

Preview Lab → · Contrast checker → · Palette generator →

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