#40023A#40023A

#40023A is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.8% C 0.112 H 333.0°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#40023A
RGBrgb(64, 2, 58)
HSLhsl(306, 94%, 13%)
HSVhsv(306, 97%, 25%)
CMYKcmyk(0%, 96.9%, 9.4%, 74.9%)
CIE-LABlab(12.22, 34.61, -18.53)
CIE-LCHlch(12.22, 39.26, 331.83°)
OKLaboklab(25.84% 0.1001 -0.051)
OKLCHoklch(25.84% 0.112 333)
XYZxyz(2.8998, 1.4392, 4.1272)
Luminance0.0144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40023A #024008
analogous
#270240 #40023A #40021B
triadic
#40023A #3A4002 #023A40
tetradic
#40023A #402702 #024008 #021B40
square
#40023A #402702 #024008 #021B40
split-complementary
#40023A #1B4002 #024027
monochromatic
#1E011B #1E011B #40023A #7B0470 #B706A6

Accessibility & contrast

On white

16.31
#40023A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#40023A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40023A
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40023A#FFFFFF#000000##FFFFFF
##40023A1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#192339
Tritanopia (blue-blind)
#43091F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #40023a;
/* rgb */ color: rgb(64, 2, 58);
/* oklch */ color: oklch(25.8% 0.112 333.0);
Tailwind
colors: {
  custom: {
    50: '#784d70',
    500: '#40023a',
    950: '#000000',
  },
}
SCSS
$custom: #40023a;
$custom-light: #784d70;
$custom-dark: #000000;
JSON
{
  "hex": "#40023a",
  "rgb": {
    "r": 64,
    "g": 2,
    "b": 58
  },
  "hsl": {
    "h": 305.806,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.25835,
    "c": 0.11233,
    "h": 333
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

primary
#40023A
secondary
#1B8325
accent
#FF3E29
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40023A

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

Preview Lab → · Contrast checker → · Palette generator →

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