#240F35#240F35

#240F35 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.2% C 0.073 H 306.9°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#240F35
RGBrgb(36, 15, 53)
HSLhsl(273, 56%, 13%)
HSVhsv(273, 72%, 21%)
CMYKcmyk(32.1%, 71.7%, 0%, 79.2%)
CIE-LABlab(8.77, 19.77, -20.73)
CIE-LCHlch(8.77, 28.64, 313.65°)
OKLaboklab(22.2% 0.0439 -0.0585)
OKLCHoklch(22.2% 0.073 306.9)
XYZxyz(1.5408, 0.9738, 3.4743)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F35 #20350F
analogous
#110F35 #240F35 #350F33
triadic
#240F35 #35240F #0F3524
tetradic
#240F35 #35110F #20350F #0F3335
square
#240F35 #35110F #20350F #0F3335
split-complementary
#240F35 #33350F #0F3511
monochromatic
#100718 #100718 #240F35 #441C65 #652A94

Accessibility & contrast

On white

17.58
#240F35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240F35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F35
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F35#FFFFFF#000000##FFFFFF
##240F351.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011836
Deuteranopia (green-blind)
#081934
Tritanopia (blue-blind)
#211720
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240f35;
/* rgb */ color: rgb(36, 15, 53);
/* oklch */ color: oklch(22.2% 0.073 306.9);
Tailwind
colors: {
  custom: {
    50: '#604e6c',
    500: '#240f35',
    950: '#000000',
  },
}
SCSS
$custom: #240f35;
$custom-light: #604e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240f35",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 53
  },
  "hsl": {
    "h": 273.158,
    "s": 55.882,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22203,
    "c": 0.07316,
    "h": 306.9
  },
  "luminance": 0.00974
}

Semantic roles & 50–950 ramp

primary
#240F35
secondary
#4D6F31
accent
#DF498C
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240F35

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

Preview Lab → · Contrast checker → · Palette generator →

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