#240439#240439

#240439 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.096 H 307.4°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#240439
RGBrgb(36, 4, 57)
HSLhsl(276, 87%, 12%)
HSVhsv(276, 93%, 22%)
CMYKcmyk(36.8%, 93%, 0%, 77.6%)
CIE-LABlab(6.84, 27.22, -26.75)
CIE-LCHlch(6.84, 38.17, 315.50°)
OKLaboklab(20.9% 0.0585 -0.0764)
OKLCHoklch(20.9% 0.096 307.4)
XYZxyz(1.5093, 0.7573, 3.9368)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240439 #193904
analogous
#090439 #240439 #390434
triadic
#240439 #392404 #043924
tetradic
#240439 #390904 #193904 #043439
square
#240439 #390904 #193904 #043439
split-complementary
#240439 #343904 #043909
monochromatic
#12021D #12021D #240439 #480872 #6C0CAB

Accessibility & contrast

On white

18.24
#240439 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240439
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240439#FFFFFF#000000##FFFFFF
##2404391.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#001538
Tritanopia (blue-blind)
#20111F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240439;
/* rgb */ color: rgb(36, 4, 57);
/* oklch */ color: oklch(20.9% 0.096 307.4);
Tailwind
colors: {
  custom: {
    50: '#624870',
    500: '#240439',
    950: '#000000',
  },
}
SCSS
$custom: #240439;
$custom-light: #624870;
$custom-dark: #000000;
JSON
{
  "hex": "#240439",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 57
  },
  "hsl": {
    "h": 276.226,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20898,
    "c": 0.09623,
    "h": 307.4
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#240439
secondary
#437B1E
accent
#FD2B7E
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#050107
muted
#7A777A

Preview Lab

Preview with #240439

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

Preview Lab → · Contrast checker → · Palette generator →

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