#240935#240935

#240935 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.083 H 309.1°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#240935
RGBrgb(36, 9, 53)
HSLhsl(277, 71%, 12%)
HSVhsv(277, 83%, 21%)
CMYKcmyk(32.1%, 83%, 0%, 79.2%)
CIE-LABlab(7.47, 23.33, -22.81)
CIE-LCHlch(7.47, 32.63, 315.64°)
OKLaboklab(21.26% 0.0525 -0.0647)
OKLCHoklch(21.26% 0.083 309.1)
XYZxyz(1.4677, 0.8275, 3.4499)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240935 #1A3509
analogous
#0E0935 #240935 #350930
triadic
#240935 #352409 #093524
tetradic
#240935 #350E09 #1A3509 #093035
square
#240935 #350E09 #1A3509 #093035
split-complementary
#240935 #303509 #09350E
monochromatic
#12041A #12041A #240935 #481269 #6B1B9E

Accessibility & contrast

On white

18.02
#240935 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240935 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240935
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240935#FFFFFF#000000##FFFFFF
##2409351.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001536
Deuteranopia (green-blind)
#021734
Tritanopia (blue-blind)
#21131E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240935;
/* rgb */ color: rgb(36, 9, 53);
/* oklch */ color: oklch(21.3% 0.083 309.1);
Tailwind
colors: {
  custom: {
    50: '#614b6c',
    500: '#240935',
    950: '#000000',
  },
}
SCSS
$custom: #240935;
$custom-light: #614b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240935",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 53
  },
  "hsl": {
    "h": 276.818,
    "s": 70.968,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21261,
    "c": 0.08328,
    "h": 309.1
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#240935
secondary
#447327
accent
#EE3A7F
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240935

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

Preview Lab → · Contrast checker → · Palette generator →

#240935 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva