#240836#240836

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

Color values

HEX#240836
RGBrgb(36, 8, 54)
HSLhsl(277, 74%, 12%)
HSVhsv(277, 85%, 21%)
CMYKcmyk(33.3%, 85.2%, 0%, 78.8%)
CIE-LABlab(7.36, 24.16, -23.72)
CIE-LCHlch(7.36, 33.86, 315.52°)
OKLaboklab(21.21% 0.0537 -0.0674)
OKLCHoklch(21.21% 0.086 308.5)
XYZxyz(1.4801, 0.8151, 3.5687)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240836 #1A3608
analogous
#0D0836 #240836 #360831
triadic
#240836 #362408 #083624
tetradic
#240836 #360D08 #1A3608 #083136
square
#240836 #360D08 #1A3608 #083136
split-complementary
#240836 #313608 #08360D
monochromatic
#12041B #12041B #240836 #48106B #6B18A1

Accessibility & contrast

On white

18.06
#240836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240836
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240836#FFFFFF#000000##FFFFFF
##2408361.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001537
Deuteranopia (green-blind)
#011735
Tritanopia (blue-blind)
#21131E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240836;
/* rgb */ color: rgb(36, 8, 54);
/* oklch */ color: oklch(21.2% 0.086 308.5);
Tailwind
colors: {
  custom: {
    50: '#614a6d',
    500: '#240836',
    950: '#000000',
  },
}
SCSS
$custom: #240836;
$custom-light: #614a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#240836",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 276.522,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21206,
    "c": 0.08613,
    "h": 308.5
  },
  "luminance": 0.00815
}

Semantic roles & 50–950 ramp

primary
#240836
secondary
#447525
accent
#F13780
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240836

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

Preview Lab → · Contrast checker → · Palette generator →

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