#240A35#240A35

#240A35 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.082 H 308.7°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#240A35
RGBrgb(36, 10, 53)
HSLhsl(276, 68%, 12%)
HSVhsv(276, 81%, 21%)
CMYKcmyk(32.1%, 81.1%, 0%, 79.2%)
CIE-LABlab(7.67, 22.79, -22.50)
CIE-LCHlch(7.67, 32.02, 315.37°)
OKLaboklab(21.41% 0.0511 -0.0637)
OKLCHoklch(21.41% 0.082 308.7)
XYZxyz(1.4786, 0.8492, 3.4535)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A35 #1B350A
analogous
#0F0A35 #240A35 #350A31
triadic
#240A35 #35240A #0A3524
tetradic
#240A35 #350F0A #1B350A #0A3135
square
#240A35 #350F0A #1B350A #0A3135
split-complementary
#240A35 #31350A #0A350F
monochromatic
#11051A #11051A #240A35 #471468 #6A1D9C

Accessibility & contrast

On white

17.95
#240A35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A35
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A35#FFFFFF#000000##FFFFFF
##240A351.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240a35;
/* rgb */ color: rgb(36, 10, 53);
/* oklch */ color: oklch(21.4% 0.082 308.7);
Tailwind
colors: {
  custom: {
    50: '#614b6c',
    500: '#240a35',
    950: '#000000',
  },
}
SCSS
$custom: #240a35;
$custom-light: #614b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240a35",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 53
  },
  "hsl": {
    "h": 276.279,
    "s": 68.254,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21407,
    "c": 0.08169,
    "h": 308.7
  },
  "luminance": 0.00849
}

Semantic roles & 50–950 ramp

primary
#240A35
secondary
#467228
accent
#EB3D82
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240A35

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

Preview Lab → · Contrast checker → · Palette generator →

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