#240F3C#240F3C

#240F3C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.083 H 301.5°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#240F3C
RGBrgb(36, 15, 60)
HSLhsl(268, 60%, 15%)
HSVhsv(268, 75%, 24%)
CMYKcmyk(40%, 75%, 0%, 76.5%)
CIE-LABlab(9.34, 21.87, -24.86)
CIE-LCHlch(9.34, 33.11, 311.34°)
OKLaboklab(22.8% 0.0434 -0.0707)
OKLCHoklch(22.8% 0.083 301.5)
XYZxyz(1.7138, 1.0430, 4.3851)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F3C #273C0F
analogous
#0F113C #240F3C #3B0F3C
triadic
#240F3C #3C240F #0F3C24
tetradic
#240F3C #3C0F11 #273C0F #0F3C3B
square
#240F3C #3C0F11 #273C0F #0F3C3B
split-complementary
#240F3C #3C3B0F #113C0F
monochromatic
#0F0618 #0F0618 #240F3C #411B6D #5F279E

Accessibility & contrast

On white

17.38
#240F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F3C
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F3C#FFFFFF#000000##FFFFFF
##240F3C1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3D
Deuteranopia (green-blind)
#011A3B
Tritanopia (blue-blind)
#1F1923
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240f3c;
/* rgb */ color: rgb(36, 15, 60);
/* oklch */ color: oklch(22.8% 0.083 301.5);
Tailwind
colors: {
  custom: {
    50: '#614f72',
    500: '#240f3c',
    950: '#000000',
  },
}
SCSS
$custom: #240f3c;
$custom-light: #614f72;
$custom-dark: #000000;
JSON
{
  "hex": "#240f3c",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 60
  },
  "hsl": {
    "h": 268,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22801,
    "c": 0.08291,
    "h": 301.5
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#240F3C
secondary
#567630
accent
#E34599
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050208
muted
#79787B

Preview Lab

Preview with #240F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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