#240640#240640

#240640 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.101 H 301.9°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#240640
RGBrgb(36, 6, 64)
HSLhsl(271, 83%, 14%)
HSVhsv(271, 91%, 25%)
CMYKcmyk(43.8%, 90.6%, 0%, 74.9%)
CIE-LABlab(7.91, 28.16, -30.05)
CIE-LCHlch(7.91, 41.19, 313.14°)
OKLaboklab(21.9% 0.0534 -0.0859)
OKLCHoklch(21.9% 0.101 301.9)
XYZxyz(1.7179, 0.8755, 4.9280)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240640 #224006
analogous
#070640 #240640 #40063F
triadic
#240640 #402406 #064024
tetradic
#240640 #400706 #224006 #063F40
square
#240640 #400706 #224006 #063F40
split-complementary
#240640 #3F4006 #064007
monochromatic
#10031C #10031C #240640 #430B78 #6310B0

Accessibility & contrast

On white

17.87
#240640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240640
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240640#FFFFFF#000000##FFFFFF
##2406401.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#1E1623
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240640;
/* rgb */ color: rgb(36, 6, 64);
/* oklch */ color: oklch(21.9% 0.101 301.9);
Tailwind
colors: {
  custom: {
    50: '#634a75',
    500: '#240640',
    950: '#000000',
  },
}
SCSS
$custom: #240640;
$custom-light: #634a75;
$custom-dark: #000000;
JSON
{
  "hex": "#240640",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 271.034,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21902,
    "c": 0.10108,
    "h": 301.9
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#240640
secondary
#4F8022
accent
#F92F90
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240640

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

Preview Lab → · Contrast checker → · Palette generator →

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