#240646#240646

#240646 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.5% C 0.108 H 298.2°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#240646
RGBrgb(36, 6, 70)
HSLhsl(268, 84%, 15%)
HSVhsv(268, 91%, 27%)
CMYKcmyk(48.6%, 91.4%, 0%, 72.5%)
CIE-LABlab(8.55, 29.85, -33.26)
CIE-LCHlch(8.55, 44.69, 311.90°)
OKLaboklab(22.54% 0.0511 -0.0953)
OKLCHoklch(22.54% 0.108 298.2)
XYZxyz(1.8979, 0.9475, 5.8761)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240646 #284606
analogous
#060846 #240646 #440646
triadic
#240646 #462406 #064624
tetradic
#240646 #460608 #284606 #064644
square
#240646 #460608 #284606 #064644
split-complementary
#240646 #464406 #084606
monochromatic
#0E021C #0E021C #240646 #410B7E #5E10B7

Accessibility & contrast

On white

17.65
#240646 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240646 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240646
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240646#FFFFFF#000000##FFFFFF
##2406461.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001845
Tritanopia (blue-blind)
#1B1827
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240646;
/* rgb */ color: rgb(36, 6, 70);
/* oklch */ color: oklch(22.5% 0.108 298.2);
Tailwind
colors: {
  custom: {
    50: '#644a7a',
    500: '#240646',
    950: '#000000',
  },
}
SCSS
$custom: #240646;
$custom-light: #644a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#240646",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 70
  },
  "hsl": {
    "h": 268.125,
    "s": 84.211,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22539,
    "c": 0.10808,
    "h": 298.2
  },
  "luminance": 0.00948
}

Semantic roles & 50–950 ramp

primary
#240646
secondary
#578522
accent
#FA2D9A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #240646

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

Preview Lab → · Contrast checker → · Palette generator →

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