#40093B#40093B

#40093B is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.104 H 332.2°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#40093B
RGBrgb(64, 9, 59)
HSLhsl(305, 75%, 14%)
HSVhsv(305, 86%, 25%)
CMYKcmyk(0%, 85.9%, 7.8%, 74.9%)
CIE-LABlab(13.24, 32.01, -17.63)
CIE-LCHlch(13.24, 36.55, 331.15°)
OKLaboklab(26.58% 0.092 -0.0485)
OKLCHoklch(26.58% 0.104 332.2)
XYZxyz(3.0015, 1.6014, 4.2878)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40093B #09400E
analogous
#2A0940 #40093B #400920
triadic
#40093B #3B4009 #093B40
tetradic
#40093B #402A09 #09400E #092040
square
#40093B #402A09 #09400E #092040
split-complementary
#40093B #204009 #09402A
monochromatic
#1B0419 #1B0419 #40093B #76116C #AB189E

Accessibility & contrast

On white

15.91
#40093B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#40093B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40093B
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40093B#FFFFFF#000000##FFFFFF
##40093B1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061D3C
Deuteranopia (green-blind)
#1B253A
Tritanopia (blue-blind)
#431021
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40093b;
/* rgb */ color: rgb(64, 9, 59);
/* oklch */ color: oklch(26.6% 0.104 332.2);
Tailwind
colors: {
  custom: {
    50: '#775071',
    500: '#40093b',
    950: '#000000',
  },
}
SCSS
$custom: #40093b;
$custom-light: #775071;
$custom-dark: #000000;
JSON
{
  "hex": "#40093b",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 59
  },
  "hsl": {
    "h": 305.455,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.26584,
    "c": 0.10396,
    "h": 332.2
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#40093B
secondary
#277E2F
accent
#F24736
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40093B

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

Preview Lab → · Contrast checker → · Palette generator →

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