#240F44#240F44

#240F44 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.094 H 296.6°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#240F44
RGBrgb(36, 15, 68)
HSLhsl(264, 64%, 16%)
HSVhsv(264, 78%, 27%)
CMYKcmyk(47.1%, 77.9%, 0%, 73.3%)
CIE-LABlab(10.06, 24.35, -29.37)
CIE-LCHlch(10.06, 38.15, 309.65°)
OKLaboklab(23.54% 0.0421 -0.0839)
OKLCHoklch(23.54% 0.094 296.6)
XYZxyz(1.9415, 1.1340, 5.5843)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F44 #2F440F
analogous
#0F1544 #240F44 #3F0F44
triadic
#240F44 #44240F #0F4424
tetradic
#240F44 #440F15 #2F440F #0F443F
square
#240F44 #440F15 #2F440F #0F443F
split-complementary
#240F44 #443F0F #15440F
monochromatic
#0D0619 #0D0619 #240F44 #3F1A76 #5925A8

Accessibility & contrast

On white

17.12
#240F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240F44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F44
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F44#FFFFFF#000000##FFFFFF
##240F441.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C46
Deuteranopia (green-blind)
#001B43
Tritanopia (blue-blind)
#1C1C28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240f44;
/* rgb */ color: rgb(36, 15, 68);
/* oklch */ color: oklch(23.5% 0.094 296.6);
Tailwind
colors: {
  custom: {
    50: '#624f78',
    500: '#240f44',
    950: '#000000',
  },
}
SCSS
$custom: #240f44;
$custom-light: #624f78;
$custom-dark: #000000;
JSON
{
  "hex": "#240f44",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 68
  },
  "hsl": {
    "h": 263.774,
    "s": 63.855,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23541,
    "c": 0.0939,
    "h": 296.6
  },
  "luminance": 0.01134
}

Semantic roles & 50–950 ramp

primary
#240F44
secondary
#607E30
accent
#E741A5
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050209
muted
#7A787B

Preview Lab

Preview with #240F44

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

Preview Lab → · Contrast checker → · Palette generator →

#240F44 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva