#240B35#240B35

#240B35 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.080 H 308.4°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#240B35
RGBrgb(36, 11, 53)
HSLhsl(276, 66%, 13%)
HSVhsv(276, 79%, 21%)
CMYKcmyk(32.1%, 79.2%, 0%, 79.2%)
CIE-LABlab(7.87, 22.23, -22.17)
CIE-LCHlch(7.87, 31.40, 315.08°)
OKLaboklab(21.55% 0.0498 -0.0627)
OKLCHoklch(21.55% 0.08 308.4)
XYZxyz(1.4897, 0.8715, 3.4572)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B35 #1C350B
analogous
#0F0B35 #240B35 #350B31
triadic
#240B35 #35240B #0B3524
tetradic
#240B35 #350F0B #1C350B #0B3135
square
#240B35 #350F0B #1C350B #0B3135
split-complementary
#240B35 #31350B #0B350F
monochromatic
#110519 #110519 #240B35 #461668 #69209A

Accessibility & contrast

On white

17.88
#240B35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240B35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B35
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B35#FFFFFF#000000##FFFFFF
##240B351.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001636
Deuteranopia (green-blind)
#041834
Tritanopia (blue-blind)
#21141E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240b35;
/* rgb */ color: rgb(36, 11, 53);
/* oklch */ color: oklch(21.6% 0.080 308.4);
Tailwind
colors: {
  custom: {
    50: '#614c6c',
    500: '#240b35',
    950: '#000000',
  },
}
SCSS
$custom: #240b35;
$custom-light: #614c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240b35",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 53
  },
  "hsl": {
    "h": 275.714,
    "s": 65.625,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21553,
    "c": 0.08009,
    "h": 308.4
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#240B35
secondary
#47722A
accent
#E93F84
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240B35

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

Preview Lab → · Contrast checker → · Palette generator →

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