#240631#240631

#240631 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.4% C 0.084 H 313.5°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#240631
RGBrgb(36, 6, 49)
HSLhsl(282, 78%, 11%)
HSVhsv(282, 88%, 19%)
CMYKcmyk(26.5%, 87.8%, 0%, 80.8%)
CIE-LABlab(6.57, 23.72, -21.32)
CIE-LCHlch(6.57, 31.90, 318.05°)
OKLaboklab(20.45% 0.0576 -0.0607)
OKLCHoklch(20.45% 0.084 313.5)
XYZxyz(1.3470, 0.7271, 2.9745)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240631 #133106
analogous
#0E0631 #240631 #310628
triadic
#240631 #312406 #063124
tetradic
#240631 #310E06 #133106 #062831
square
#240631 #310E06 #133106 #062831
split-complementary
#240631 #283106 #06310E
monochromatic
#14031B #14031B #240631 #4C0D68 #74139E

Accessibility & contrast

On white

18.33
#240631 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240631 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240631
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240631#FFFFFF#000000##FFFFFF
##2406311.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001332
Deuteranopia (green-blind)
#031530
Tritanopia (blue-blind)
#230F1B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240631;
/* rgb */ color: rgb(36, 6, 49);
/* oklch */ color: oklch(20.4% 0.084 313.5);
Tailwind
colors: {
  custom: {
    50: '#614969',
    500: '#240631',
    950: '#000000',
  },
}
SCSS
$custom: #240631;
$custom-light: #614969;
$custom-dark: #000000;
JSON
{
  "hex": "#240631",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 49
  },
  "hsl": {
    "h": 281.86,
    "s": 78.182,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20448,
    "c": 0.08367,
    "h": 313.5
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#240631
secondary
#3A7221
accent
#F5336E
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240631

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

Preview Lab → · Contrast checker → · Palette generator →

#240631 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva