#240635#240635

#240635 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.088 H 310.0°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#240635
RGBrgb(36, 6, 53)
HSLhsl(278, 80%, 12%)
HSVhsv(278, 89%, 21%)
CMYKcmyk(32.1%, 88.7%, 0%, 79.2%)
CIE-LABlab(6.89, 24.93, -23.76)
CIE-LCHlch(6.89, 34.44, 316.38°)
OKLaboklab(20.81% 0.0567 -0.0676)
OKLCHoklch(20.81% 0.088 310)
XYZxyz(1.4352, 0.7624, 3.4390)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240635 #173506
analogous
#0D0635 #240635 #35062F
triadic
#240635 #352406 #063524
tetradic
#240635 #350D06 #173506 #062F35
square
#240635 #350D06 #173506 #062F35
split-complementary
#240635 #2F3506 #06350D
monochromatic
#13031B #13031B #240635 #490C6C #6F12A3

Accessibility & contrast

On white

18.22
#240635 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240635 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240635
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240635#FFFFFF#000000##FFFFFF
##2406351.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001436
Deuteranopia (green-blind)
#001634
Tritanopia (blue-blind)
#22111D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240635;
/* rgb */ color: rgb(36, 6, 53);
/* oklch */ color: oklch(20.8% 0.088 310.0);
Tailwind
colors: {
  custom: {
    50: '#61496d',
    500: '#240635',
    950: '#000000',
  },
}
SCSS
$custom: #240635;
$custom-light: #61496d;
$custom-dark: #000000;
JSON
{
  "hex": "#240635",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 53
  },
  "hsl": {
    "h": 278.298,
    "s": 79.661,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20814,
    "c": 0.08829,
    "h": 310
  },
  "luminance": 0.00762
}

Semantic roles & 50–950 ramp

primary
#240635
secondary
#407521
accent
#F63279
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240635

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

Preview Lab → · Contrast checker → · Palette generator →

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