#240831#240831

#240831 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.8% C 0.080 H 312.9°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#240831
RGBrgb(36, 8, 49)
HSLhsl(281, 72%, 11%)
HSVhsv(281, 84%, 19%)
CMYKcmyk(26.5%, 83.7%, 0%, 80.8%)
CIE-LABlab(6.96, 22.68, -20.70)
CIE-LCHlch(6.96, 30.70, 317.62°)
OKLaboklab(20.76% 0.0545 -0.0586)
OKLCHoklch(20.76% 0.08 312.9)
XYZxyz(1.3687, 0.7705, 2.9818)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240831 #153108
analogous
#0F0831 #240831 #310829
triadic
#240831 #312408 #083124
tetradic
#240831 #310F08 #153108 #082931
square
#240831 #310F08 #153108 #082931
split-complementary
#240831 #293108 #08310F
monochromatic
#13041A #13041A #240831 #4B1166 #71199A

Accessibility & contrast

On white

18.20
#240831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240831
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240831#FFFFFF#000000##FFFFFF
##2408311.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#051630
Tritanopia (blue-blind)
#23111B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240831;
/* rgb */ color: rgb(36, 8, 49);
/* oklch */ color: oklch(20.8% 0.080 312.9);
Tailwind
colors: {
  custom: {
    50: '#614a69',
    500: '#240831',
    950: '#000000',
  },
}
SCSS
$custom: #240831;
$custom-light: #614a69;
$custom-dark: #000000;
JSON
{
  "hex": "#240831",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 280.976,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.2076,
    "c": 0.08006,
    "h": 312.9
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#240831
secondary
#3D7025
accent
#EF3973
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240831

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

Preview Lab → · Contrast checker → · Palette generator →

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