#240F3D#240F3D

#240F3D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.9% C 0.084 H 300.9°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#240F3D
RGBrgb(36, 15, 61)
HSLhsl(267, 61%, 15%)
HSVhsv(267, 75%, 24%)
CMYKcmyk(41%, 75.4%, 0%, 76.1%)
CIE-LABlab(9.43, 22.18, -25.43)
CIE-LCHlch(9.43, 33.74, 311.09°)
OKLaboklab(22.89% 0.0432 -0.0723)
OKLCHoklch(22.89% 0.084 300.9)
XYZxyz(1.7405, 1.0536, 4.5256)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F3D #283D0F
analogous
#0F113D #240F3D #3B0F3D
triadic
#240F3D #3D240F #0F3D24
tetradic
#240F3D #3D0F11 #283D0F #0F3D3B
square
#240F3D #3D0F11 #283D0F #0F3D3B
split-complementary
#240F3D #3D3B0F #113D0F
monochromatic
#0E0619 #0E0619 #240F3D #411B6E #5E279F

Accessibility & contrast

On white

17.34
#240F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240F3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F3D
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F3D#FFFFFF#000000##FFFFFF
##240F3D1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3E
Deuteranopia (green-blind)
#001A3C
Tritanopia (blue-blind)
#1F1924
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240f3d;
/* rgb */ color: rgb(36, 15, 61);
/* oklch */ color: oklch(22.9% 0.084 300.9);
Tailwind
colors: {
  custom: {
    50: '#614f73',
    500: '#240f3d',
    950: '#000000',
  },
}
SCSS
$custom: #240f3d;
$custom-light: #614f73;
$custom-dark: #000000;
JSON
{
  "hex": "#240f3d",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 61
  },
  "hsl": {
    "h": 267.391,
    "s": 60.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2289,
    "c": 0.08429,
    "h": 300.9
  },
  "luminance": 0.01054
}

Semantic roles & 50–950 ramp

primary
#240F3D
secondary
#577730
accent
#E4449B
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #240F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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