#240435#240435

#240435 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.092 H 310.6°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#240435
RGBrgb(36, 4, 53)
HSLhsl(279, 86%, 11%)
HSVhsv(279, 92%, 21%)
CMYKcmyk(32.1%, 92.5%, 0%, 79.2%)
CIE-LABlab(6.49, 26.00, -24.39)
CIE-LCHlch(6.49, 35.65, 316.82°)
OKLaboklab(20.5% 0.0598 -0.0697)
OKLCHoklch(20.5% 0.092 310.6)
XYZxyz(1.4134, 0.7190, 3.4318)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240435 #153504
analogous
#0B0435 #240435 #35042D
triadic
#240435 #352404 #043524
tetradic
#240435 #350B04 #153504 #042D35
square
#240435 #350B04 #153504 #042D35
split-complementary
#240435 #2D3504 #04350B
monochromatic
#13021C #13021C #240435 #4B086E #710DA7

Accessibility & contrast

On white

18.36
#240435 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240435
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240435#FFFFFF#000000##FFFFFF
##2404351.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001336
Deuteranopia (green-blind)
#001534
Tritanopia (blue-blind)
#22101C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240435;
/* rgb */ color: rgb(36, 4, 53);
/* oklch */ color: oklch(20.5% 0.092 310.6);
Tailwind
colors: {
  custom: {
    50: '#61486d',
    500: '#240435',
    950: '#000000',
  },
}
SCSS
$custom: #240435;
$custom-light: #61486d;
$custom-dark: #000000;
JSON
{
  "hex": "#240435",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 53
  },
  "hsl": {
    "h": 279.184,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20504,
    "c": 0.09184,
    "h": 310.6
  },
  "luminance": 0.00719
}

Semantic roles & 50–950 ramp

primary
#240435
secondary
#3D771E
accent
#FC2C74
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240435

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

Preview Lab → · Contrast checker → · Palette generator →

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