#240844#240844

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

Color values

HEX#240844
RGBrgb(36, 8, 68)
HSLhsl(268, 79%, 15%)
HSVhsv(268, 88%, 27%)
CMYKcmyk(47.1%, 88.2%, 0%, 73.3%)
CIE-LABlab(8.71, 28.19, -31.59)
CIE-LCHlch(8.71, 42.34, 311.75°)
OKLaboklab(22.58% 0.0497 -0.0904)
OKLCHoklch(22.58% 0.103 298.8)
XYZxyz(1.8575, 0.9661, 5.5563)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240844 #284408
analogous
#080A44 #240844 #420844
triadic
#240844 #442408 #084424
tetradic
#240844 #44080A #284408 #084442
square
#240844 #44080A #284408 #084442
split-complementary
#240844 #444208 #0A4408
monochromatic
#0E031B #0E031B #240844 #410E7B #5E15B2

Accessibility & contrast

On white

17.60
#240844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240844
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240844#FFFFFF#000000##FFFFFF
##2408441.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001946
Deuteranopia (green-blind)
#001843
Tritanopia (blue-blind)
#1C1826
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240844;
/* rgb */ color: rgb(36, 8, 68);
/* oklch */ color: oklch(22.6% 0.103 298.8);
Tailwind
colors: {
  custom: {
    50: '#634b78',
    500: '#240844',
    950: '#000000',
  },
}
SCSS
$custom: #240844;
$custom-light: #634b78;
$custom-dark: #000000;
JSON
{
  "hex": "#240844",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 268,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22584,
    "c": 0.10315,
    "h": 298.8
  },
  "luminance": 0.00966
}

Semantic roles & 50–950 ramp

primary
#240844
secondary
#578226
accent
#F5329A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #240844

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

Preview Lab → · Contrast checker → · Palette generator →

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