#240335#240335

#240335 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.094 H 310.9°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#240335
RGBrgb(36, 3, 53)
HSLhsl(280, 89%, 11%)
HSVhsv(280, 94%, 21%)
CMYKcmyk(32.1%, 94.3%, 0%, 79.2%)
CIE-LABlab(6.30, 26.53, -24.71)
CIE-LCHlch(6.30, 36.25, 317.03°)
OKLaboklab(20.35% 0.0613 -0.0708)
OKLCHoklch(20.35% 0.094 310.9)
XYZxyz(1.4026, 0.6973, 3.4282)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240335 #143503
analogous
#0B0335 #240335 #35032D
triadic
#240335 #352403 #033524
tetradic
#240335 #350B03 #143503 #032D35
square
#240335 #350B03 #143503 #032D35
split-complementary
#240335 #2D3503 #03350B
monochromatic
#14021D #14021D #240335 #4B066F #730AA9

Accessibility & contrast

On white

18.43
#240335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#240335 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240335
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240335#FFFFFF#000000##FFFFFF
##2403351.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001236
Deuteranopia (green-blind)
#001434
Tritanopia (blue-blind)
#220F1C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240335;
/* rgb */ color: rgb(36, 3, 53);
/* oklch */ color: oklch(20.3% 0.094 310.9);
Tailwind
colors: {
  custom: {
    50: '#61476d',
    500: '#240335',
    950: '#000000',
  },
}
SCSS
$custom: #240335;
$custom-light: #61476d;
$custom-dark: #000000;
JSON
{
  "hex": "#240335",
  "rgb": {
    "r": 36,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 279.6,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20345,
    "c": 0.09367,
    "h": 310.9
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#240335
secondary
#3B781C
accent
#FF2972
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240335

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

Preview Lab → · Contrast checker → · Palette generator →

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