#240236#240236

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

Color values

HEX#240236
RGBrgb(36, 2, 54)
HSLhsl(279, 93%, 11%)
HSVhsv(279, 96%, 21%)
CMYKcmyk(33.3%, 96.3%, 0%, 78.8%)
CIE-LABlab(6.19, 27.37, -25.62)
CIE-LCHlch(6.19, 37.49, 316.89°)
OKLaboklab(20.29% 0.0626 -0.0736)
OKLCHoklch(20.29% 0.097 310.4)
XYZxyz(1.4150, 0.6849, 3.5470)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240236 #143602
analogous
#0A0236 #240236 #36022E
triadic
#240236 #362402 #023624
tetradic
#240236 #360A02 #143602 #022E36
square
#240236 #360A02 #143602 #022E36
split-complementary
#240236 #2E3602 #02360A
monochromatic
#14011E #14011E #240236 #4B0471 #7306AC

Accessibility & contrast

On white

18.47
#240236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240236
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240236#FFFFFF#000000##FFFFFF
##2402361.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001237
Deuteranopia (green-blind)
#001435
Tritanopia (blue-blind)
#210F1C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #240236;
/* rgb */ color: rgb(36, 2, 54);
/* oklch */ color: oklch(20.3% 0.097 310.4);
Tailwind
colors: {
  custom: {
    50: '#61476d',
    500: '#240236',
    950: '#000000',
  },
}
SCSS
$custom: #240236;
$custom-light: #61476d;
$custom-dark: #000000;
JSON
{
  "hex": "#240236",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 279.231,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20285,
    "c": 0.09658,
    "h": 310.4
  },
  "luminance": 0.00685
}

Semantic roles & 50–950 ramp

primary
#240236
secondary
#3B7A1A
accent
#FF2973
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050007
muted
#79777A

Preview Lab

Preview with #240236

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

Preview Lab → · Contrast checker → · Palette generator →

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