#240839#240839

#240839 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.090 H 306.2°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#240839
RGBrgb(36, 8, 57)
HSLhsl(274, 75%, 13%)
HSVhsv(274, 86%, 22%)
CMYKcmyk(36.8%, 86%, 0%, 77.6%)
CIE-LABlab(7.63, 25.03, -25.48)
CIE-LCHlch(7.63, 35.72, 314.49°)
OKLaboklab(21.49% 0.053 -0.0725)
OKLCHoklch(21.49% 0.09 306.2)
XYZxyz(1.5527, 0.8442, 3.9512)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240839 #1D3908
analogous
#0C0839 #240839 #390835
triadic
#240839 #392408 #083924
tetradic
#240839 #390C08 #1D3908 #083539
square
#240839 #390C08 #1D3908 #083539
split-complementary
#240839 #353908 #08390C
monochromatic
#11041B #11041B #240839 #46106F #6817A4

Accessibility & contrast

On white

17.97
#240839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240839
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240839#FFFFFF#000000##FFFFFF
##2408391.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#001738
Tritanopia (blue-blind)
#201420
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240839;
/* rgb */ color: rgb(36, 8, 57);
/* oklch */ color: oklch(21.5% 0.090 306.2);
Tailwind
colors: {
  custom: {
    50: '#614a70',
    500: '#240839',
    950: '#000000',
  },
}
SCSS
$custom: #240839;
$custom-light: #614a70;
$custom-dark: #000000;
JSON
{
  "hex": "#240839",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 274.286,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21486,
    "c": 0.08978,
    "h": 306.2
  },
  "luminance": 0.00844
}

Semantic roles & 50–950 ramp

primary
#240839
secondary
#487825
accent
#F23686
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240839

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

Preview Lab → · Contrast checker → · Palette generator →

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