#240239#240239

#240239 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.100 H 308.0°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#240239
RGBrgb(36, 2, 57)
HSLhsl(277, 93%, 12%)
HSVhsv(277, 96%, 22%)
CMYKcmyk(36.8%, 96.5%, 0%, 77.6%)
CIE-LABlab(6.45, 28.31, -27.39)
CIE-LCHlch(6.45, 39.39, 315.95°)
OKLaboklab(20.59% 0.0614 -0.0785)
OKLCHoklch(20.59% 0.1 308)
XYZxyz(1.4876, 0.7139, 3.9295)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240239 #173902
analogous
#090239 #240239 #390233
triadic
#240239 #392402 #023924
tetradic
#240239 #390902 #173902 #023339
square
#240239 #390902 #173902 #023339
split-complementary
#240239 #333902 #023909
monochromatic
#13011E #13011E #240239 #490474 #6F06AF

Accessibility & contrast

On white

18.38
#240239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#240239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240239
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240239#FFFFFF#000000##FFFFFF
##2402391.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133A
Deuteranopia (green-blind)
#001538
Tritanopia (blue-blind)
#20101E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240239;
/* rgb */ color: rgb(36, 2, 57);
/* oklch */ color: oklch(20.6% 0.100 308.0);
Tailwind
colors: {
  custom: {
    50: '#624770',
    500: '#240239',
    950: '#000000',
  },
}
SCSS
$custom: #240239;
$custom-light: #624770;
$custom-dark: #000000;
JSON
{
  "hex": "#240239",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 277.091,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20591,
    "c": 0.09968,
    "h": 308
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#240239
secondary
#407D1A
accent
#FF297B
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#050007
muted
#7A777A

Preview Lab

Preview with #240239

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

Preview Lab → · Contrast checker → · Palette generator →

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