#40124B#40124B

#40124B is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.107 H 319.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#40124B
RGBrgb(64, 18, 75)
HSLhsl(288, 61%, 18%)
HSVhsv(288, 76%, 29%)
CMYKcmyk(14.7%, 76%, 0%, 70.6%)
CIE-LABlab(15.65, 31.51, -25.01)
CIE-LCHlch(15.65, 40.23, 321.56°)
OKLaboklab(28.66% 0.0812 -0.07)
OKLCHoklch(28.66% 0.107 319.2)
XYZxyz(3.6005, 2.0308, 6.8576)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40124B #1D4B12
analogous
#23124B #40124B #4B1239
triadic
#40124B #4B4012 #124B40
tetradic
#40124B #4B2312 #1D4B12 #12394B
square
#40124B #4B2312 #1D4B12 #12394B
split-complementary
#40124B #394B12 #124B23
monochromatic
#150619 #16061A #40124B #6A1E7C #942AAE

Accessibility & contrast

On white

14.93
#40124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#40124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40124B
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40124B#FFFFFF#000000##FFFFFF
##40124B1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#16294A
Tritanopia (blue-blind)
#401D2D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40124b;
/* rgb */ color: rgb(64, 18, 75);
/* oklch */ color: oklch(28.7% 0.107 319.2);
Tailwind
colors: {
  custom: {
    50: '#77547d',
    500: '#40124b',
    950: '#000000',
  },
}
SCSS
$custom: #40124b;
$custom-light: #77547d;
$custom-dark: #000000;
JSON
{
  "hex": "#40124b",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 288.421,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28657,
    "c": 0.10726,
    "h": 319.2
  },
  "luminance": 0.02031
}

Semantic roles & 50–950 ramp

primary
#40124B
secondary
#448435
accent
#E44362
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40124B

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

Preview Lab → · Contrast checker → · Palette generator →

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