#240835#240835

#240835 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.085 H 309.4°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#240835
RGBrgb(36, 8, 53)
HSLhsl(277, 74%, 12%)
HSVhsv(277, 85%, 21%)
CMYKcmyk(32.1%, 84.9%, 0%, 79.2%)
CIE-LABlab(7.28, 23.86, -23.13)
CIE-LCHlch(7.28, 33.23, 315.90°)
OKLaboklab(21.11% 0.0539 -0.0656)
OKLCHoklch(21.11% 0.085 309.4)
XYZxyz(1.4569, 0.8058, 3.4463)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240835 #193508
analogous
#0E0835 #240835 #350830
triadic
#240835 #352408 #083524
tetradic
#240835 #350E08 #193508 #083035
square
#240835 #350E08 #193508 #083035
split-complementary
#240835 #303508 #08350E
monochromatic
#12041B #12041B #240835 #48106A #6C189F

Accessibility & contrast

On white

18.08
#240835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240835 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240835
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240835#FFFFFF#000000##FFFFFF
##2408351.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001536
Deuteranopia (green-blind)
#011634
Tritanopia (blue-blind)
#21121D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240835;
/* rgb */ color: rgb(36, 8, 53);
/* oklch */ color: oklch(21.1% 0.085 309.4);
Tailwind
colors: {
  custom: {
    50: '#614a6c',
    500: '#240835',
    950: '#000000',
  },
}
SCSS
$custom: #240835;
$custom-light: #614a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240835",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 277.333,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21114,
    "c": 0.08492,
    "h": 309.4
  },
  "luminance": 0.00806
}

Semantic roles & 50–950 ramp

primary
#240835
secondary
#437425
accent
#F0377D
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240835

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

Preview Lab → · Contrast checker → · Palette generator →

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