#240641#240641

#240641 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.102 H 301.2°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#240641
RGBrgb(36, 6, 65)
HSLhsl(271, 83%, 14%)
HSVhsv(271, 91%, 25%)
CMYKcmyk(44.6%, 90.8%, 0%, 74.5%)
CIE-LABlab(8.01, 28.44, -30.60)
CIE-LCHlch(8.01, 41.77, 312.91°)
OKLaboklab(22.01% 0.053 -0.0874)
OKLCHoklch(22.01% 0.102 301.2)
XYZxyz(1.7466, 0.8870, 5.0792)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240641 #234106
analogous
#060641 #240641 #410641
triadic
#240641 #412406 #064124
tetradic
#240641 #410606 #234106 #064141
square
#240641 #410606 #234106 #064141
split-complementary
#240641 #414106 #064106
monochromatic
#10031C #10031C #240641 #430B79 #6210B1

Accessibility & contrast

On white

17.84
#240641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240641
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240641#FFFFFF#000000##FFFFFF
##2406411.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001740
Tritanopia (blue-blind)
#1D1624
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240641;
/* rgb */ color: rgb(36, 6, 65);
/* oklch */ color: oklch(22.0% 0.102 301.2);
Tailwind
colors: {
  custom: {
    50: '#634a76',
    500: '#240641',
    950: '#000000',
  },
}
SCSS
$custom: #240641;
$custom-light: #634a76;
$custom-dark: #000000;
JSON
{
  "hex": "#240641",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 270.508,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22006,
    "c": 0.10225,
    "h": 301.2
  },
  "luminance": 0.00887
}

Semantic roles & 50–950 ramp

primary
#240641
secondary
#518122
accent
#F92E92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240641

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

Preview Lab → · Contrast checker → · Palette generator →

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