#40103B#40103B

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

Color values

HEX#40103B
RGBrgb(64, 16, 59)
HSLhsl(306, 60%, 16%)
HSVhsv(306, 75%, 25%)
CMYKcmyk(0%, 75%, 7.8%, 74.9%)
CIE-LABlab(14.27, 29.10, -16.01)
CIE-LCHlch(14.27, 33.21, 331.18°)
OKLaboklab(27.33% 0.0835 -0.0439)
OKLCHoklch(27.33% 0.094 332.3)
XYZxyz(3.0891, 1.7766, 4.3170)
Luminance0.0178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40103B #104015
analogous
#2D1040 #40103B #401023
triadic
#40103B #3B4010 #103B40
tetradic
#40103B #402D10 #104015 #102340
square
#40103B #402D10 #104015 #102340
split-complementary
#40103B #234010 #10402D
monochromatic
#180617 #180617 #40103B #711C68 #A22895

Accessibility & contrast

On white

15.50
#40103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40103B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40103B
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40103B#FFFFFF#000000##FFFFFF
##40103B1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E203C
Deuteranopia (green-blind)
#1E273A
Tritanopia (blue-blind)
#431523
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40103b;
/* rgb */ color: rgb(64, 16, 59);
/* oklch */ color: oklch(27.3% 0.094 332.3);
Tailwind
colors: {
  custom: {
    50: '#775371',
    500: '#40103b',
    950: '#000000',
  },
}
SCSS
$custom: #40103b;
$custom-light: #775371;
$custom-dark: #000000;
JSON
{
  "hex": "#40103b",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 306.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27326,
    "c": 0.09431,
    "h": 332.3
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#40103B
secondary
#327A39
accent
#E35545
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40103B

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

Preview Lab → · Contrast checker → · Palette generator →

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