#240937#240937

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

Color values

HEX#240937
RGBrgb(36, 9, 55)
HSLhsl(275, 72%, 13%)
HSVhsv(275, 84%, 22%)
CMYKcmyk(34.5%, 83.6%, 0%, 78.4%)
CIE-LABlab(7.64, 23.91, -24.00)
CIE-LCHlch(7.64, 33.87, 314.89°)
OKLaboklab(21.44% 0.0521 -0.0681)
OKLCHoklch(21.44% 0.086 307.4)
XYZxyz(1.5147, 0.8463, 3.6972)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240937 #1C3709
analogous
#0D0937 #240937 #370933
triadic
#240937 #372409 #093724
tetradic
#240937 #370D09 #1C3709 #093337
square
#240937 #370D09 #1C3709 #093337
split-complementary
#240937 #333709 #09370D
monochromatic
#11041A #11041A #240937 #46126C #691AA0

Accessibility & contrast

On white

17.96
#240937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240937 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240937
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240937#FFFFFF#000000##FFFFFF
##2409371.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001638
Deuteranopia (green-blind)
#001736
Tritanopia (blue-blind)
#21141F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240937;
/* rgb */ color: rgb(36, 9, 55);
/* oklch */ color: oklch(21.4% 0.086 307.4);
Tailwind
colors: {
  custom: {
    50: '#614b6e',
    500: '#240937',
    950: '#000000',
  },
}
SCSS
$custom: #240937;
$custom-light: #614b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#240937",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 55
  },
  "hsl": {
    "h": 275.217,
    "s": 71.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21442,
    "c": 0.08577,
    "h": 307.4
  },
  "luminance": 0.00846
}

Semantic roles & 50–950 ramp

primary
#240937
secondary
#477527
accent
#EF3984
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240937

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

Preview Lab → · Contrast checker → · Palette generator →

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