#40094B#40094B

#40094B is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.119 H 320.1°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#40094B
RGBrgb(64, 9, 75)
HSLhsl(290, 79%, 16%)
HSVhsv(290, 88%, 29%)
CMYKcmyk(14.7%, 88%, 0%, 70.6%)
CIE-LABlab(14.36, 35.18, -27.07)
CIE-LCHlch(14.36, 44.39, 322.42°)
OKLaboklab(27.74% 0.0909 -0.076)
OKLCHoklch(27.74% 0.119 320.1)
XYZxyz(3.4819, 1.7935, 6.8180)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40094B #144B09
analogous
#1F094B #40094B #4B0935
triadic
#40094B #4B4009 #094B40
tetradic
#40094B #4B1F09 #144B09 #09354B
square
#40094B #4B1F09 #144B09 #09354B
split-complementary
#40094B #354B09 #094B1F
monochromatic
#17031B #17031B #40094B #6F1082 #9D16B8

Accessibility & contrast

On white

15.46
#40094B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40094B
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40094B#FFFFFF#000000##FFFFFF
##40094B1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#10264A
Tritanopia (blue-blind)
#40182A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40094b;
/* rgb */ color: rgb(64, 9, 75);
/* oklch */ color: oklch(27.7% 0.119 320.1);
Tailwind
colors: {
  custom: {
    50: '#78517e',
    500: '#40094b',
    950: '#000000',
  },
}
SCSS
$custom: #40094b;
$custom-light: #78517e;
$custom-dark: #000000;
JSON
{
  "hex": "#40094b",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 75
  },
  "hsl": {
    "h": 290,
    "s": 78.571,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27745,
    "c": 0.11851,
    "h": 320.1
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#40094B
secondary
#388828
accent
#F53353
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #40094B

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

Preview Lab → · Contrast checker → · Palette generator →

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