#240647#240647

#240647 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.109 H 297.6°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#240647
RGBrgb(36, 6, 71)
HSLhsl(268, 84%, 15%)
HSVhsv(268, 92%, 28%)
CMYKcmyk(49.3%, 91.5%, 0%, 72.2%)
CIE-LABlab(8.66, 30.13, -33.78)
CIE-LCHlch(8.66, 45.27, 311.73°)
OKLaboklab(22.65% 0.0506 -0.0968)
OKLCHoklch(22.65% 0.109 297.6)
XYZxyz(1.9297, 0.9602, 6.0437)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240647 #294706
analogous
#060947 #240647 #440647
triadic
#240647 #472406 #064724
tetradic
#240647 #470609 #294706 #064744
square
#240647 #470609 #294706 #064744
split-complementary
#240647 #474406 #094706
monochromatic
#0E021C #0E021C #240647 #410B7F #5D10B8

Accessibility & contrast

On white

17.62
#240647 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240647
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240647#FFFFFF#000000##FFFFFF
##2406471.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001846
Tritanopia (blue-blind)
#1B1927
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240647;
/* rgb */ color: rgb(36, 6, 71);
/* oklch */ color: oklch(22.6% 0.109 297.6);
Tailwind
colors: {
  custom: {
    50: '#644a7b',
    500: '#240647',
    950: '#000000',
  },
}
SCSS
$custom: #240647;
$custom-light: #644a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#240647",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 71
  },
  "hsl": {
    "h": 267.692,
    "s": 84.416,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22648,
    "c": 0.10925,
    "h": 297.6
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#240647
secondary
#588623
accent
#FB2D9C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240647

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

Preview Lab → · Contrast checker → · Palette generator →

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