#240636#240636

#240636 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.089 H 309.2°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#240636
RGBrgb(36, 6, 54)
HSLhsl(278, 80%, 12%)
HSVhsv(278, 89%, 21%)
CMYKcmyk(33.3%, 88.9%, 0%, 78.8%)
CIE-LABlab(6.97, 25.23, -24.36)
CIE-LCHlch(6.97, 35.07, 316.01°)
OKLaboklab(20.91% 0.0565 -0.0694)
OKLCHoklch(20.91% 0.089 309.2)
XYZxyz(1.4584, 0.7717, 3.5614)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240636 #183606
analogous
#0C0636 #240636 #360630
triadic
#240636 #362406 #063624
tetradic
#240636 #360C06 #183606 #063036
square
#240636 #360C06 #183606 #063036
split-complementary
#240636 #303606 #06360C
monochromatic
#12031C #12031C #240636 #490C6D #6D12A4

Accessibility & contrast

On white

18.19
#240636 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240636 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240636
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240636#FFFFFF#000000##FFFFFF
##2406361.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001437
Deuteranopia (green-blind)
#001635
Tritanopia (blue-blind)
#21111D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240636;
/* rgb */ color: rgb(36, 6, 54);
/* oklch */ color: oklch(20.9% 0.089 309.2);
Tailwind
colors: {
  custom: {
    50: '#61496d',
    500: '#240636',
    950: '#000000',
  },
}
SCSS
$custom: #240636;
$custom-light: #61496d;
$custom-dark: #000000;
JSON
{
  "hex": "#240636",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 54
  },
  "hsl": {
    "h": 277.5,
    "s": 80,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20908,
    "c": 0.08945,
    "h": 309.2
  },
  "luminance": 0.00772
}

Semantic roles & 50–950 ramp

primary
#240636
secondary
#417621
accent
#F6317B
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240636

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

Preview Lab → · Contrast checker → · Palette generator →

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