#240944#240944

#240944 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.102 H 298.5°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#240944
RGBrgb(36, 9, 68)
HSLhsl(267, 77%, 15%)
HSVhsv(267, 87%, 27%)
CMYKcmyk(47.1%, 86.8%, 0%, 73.3%)
CIE-LABlab(8.89, 27.66, -31.29)
CIE-LCHlch(8.89, 41.76, 311.48°)
OKLaboklab(22.71% 0.0487 -0.0895)
OKLCHoklch(22.71% 0.102 298.5)
XYZxyz(1.8684, 0.9878, 5.5599)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240944 #294409
analogous
#090B44 #240944 #420944
triadic
#240944 #442409 #094424
tetradic
#240944 #44090B #294409 #094442
square
#240944 #44090B #294409 #094442
split-complementary
#240944 #444209 #0B4409
monochromatic
#0E041B #0E041B #240944 #41107A #5D17B0

Accessibility & contrast

On white

17.54
#240944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240944 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240944
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240944#FFFFFF#000000##FFFFFF
##2409441.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240944;
/* rgb */ color: rgb(36, 9, 68);
/* oklch */ color: oklch(22.7% 0.102 298.5);
Tailwind
colors: {
  custom: {
    50: '#634c78',
    500: '#240944',
    950: '#000000',
  },
}
SCSS
$custom: #240944;
$custom-light: #634c78;
$custom-dark: #000000;
JSON
{
  "hex": "#240944",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 68
  },
  "hsl": {
    "h": 267.458,
    "s": 76.623,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22712,
    "c": 0.10189,
    "h": 298.5
  },
  "luminance": 0.00988
}

Semantic roles & 50–950 ramp

primary
#240944
secondary
#588227
accent
#F3359C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240944

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

Preview Lab → · Contrast checker → · Palette generator →

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