#240934#240934

#240934 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.082 H 309.9°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#240934
RGBrgb(36, 9, 52)
HSLhsl(278, 70%, 12%)
HSVhsv(278, 83%, 20%)
CMYKcmyk(30.8%, 82.7%, 0%, 79.6%)
CIE-LABlab(7.39, 23.03, -22.21)
CIE-LCHlch(7.39, 32.00, 316.04°)
OKLaboklab(21.17% 0.0526 -0.0629)
OKLCHoklch(21.17% 0.082 309.9)
XYZxyz(1.4450, 0.8184, 3.3300)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240934 #193409
analogous
#0E0934 #240934 #34092F
triadic
#240934 #342409 #093424
tetradic
#240934 #340E09 #193409 #092F34
square
#240934 #340E09 #193409 #092F34
split-complementary
#240934 #2F3409 #09340E
monochromatic
#12051A #12051A #240934 #481268 #6C1B9C

Accessibility & contrast

On white

18.05
#240934 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240934 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240934
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240934#FFFFFF#000000##FFFFFF
##2409341.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#031733
Tritanopia (blue-blind)
#22121D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240934;
/* rgb */ color: rgb(36, 9, 52);
/* oklch */ color: oklch(21.2% 0.082 309.9);
Tailwind
colors: {
  custom: {
    50: '#614b6c',
    500: '#240934',
    950: '#000000',
  },
}
SCSS
$custom: #240934;
$custom-light: #614b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240934",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 52
  },
  "hsl": {
    "h": 277.674,
    "s": 70.492,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21173,
    "c": 0.08204,
    "h": 309.9
  },
  "luminance": 0.00818
}

Semantic roles & 50–950 ramp

primary
#240934
secondary
#437227
accent
#ED3B7D
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240934

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

Preview Lab → · Contrast checker → · Palette generator →

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