#240643#240643

#240643 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.105 H 300.0°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#240643
RGBrgb(36, 6, 67)
HSLhsl(270, 84%, 14%)
HSVhsv(270, 91%, 26%)
CMYKcmyk(46.3%, 91%, 0%, 73.7%)
CIE-LABlab(8.22, 29.00, -31.67)
CIE-LCHlch(8.22, 42.94, 312.48°)
OKLaboklab(22.22% 0.0522 -0.0906)
OKLCHoklch(22.22% 0.105 300)
XYZxyz(1.8055, 0.9105, 5.3897)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240643 #254306
analogous
#060743 #240643 #430643
triadic
#240643 #432406 #064324
tetradic
#240643 #430607 #254306 #064343
square
#240643 #430607 #254306 #064343
split-complementary
#240643 #434306 #074306
monochromatic
#0F031C #0F031C #240643 #420B7B #6010B3

Accessibility & contrast

On white

17.76
#240643 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240643
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240643#FFFFFF#000000##FFFFFF
##2406431.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001845
Deuteranopia (green-blind)
#001742
Tritanopia (blue-blind)
#1D1725
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240643;
/* rgb */ color: rgb(36, 6, 67);
/* oklch */ color: oklch(22.2% 0.105 300.0);
Tailwind
colors: {
  custom: {
    50: '#634a78',
    500: '#240643',
    950: '#000000',
  },
}
SCSS
$custom: #240643;
$custom-light: #634a78;
$custom-dark: #000000;
JSON
{
  "hex": "#240643",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 67
  },
  "hsl": {
    "h": 269.508,
    "s": 83.562,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22217,
    "c": 0.10459,
    "h": 300
  },
  "luminance": 0.00911
}

Semantic roles & 50–950 ramp

primary
#240643
secondary
#538322
accent
#FA2E96
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #240643

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

Preview Lab → · Contrast checker → · Palette generator →

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