#240838#240838

#240838 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.089 H 306.9°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#240838
RGBrgb(36, 8, 56)
HSLhsl(275, 75%, 13%)
HSVhsv(275, 86%, 22%)
CMYKcmyk(35.7%, 85.7%, 0%, 78%)
CIE-LABlab(7.54, 24.74, -24.90)
CIE-LCHlch(7.54, 35.10, 314.82°)
OKLaboklab(21.39% 0.0532 -0.0708)
OKLCHoklch(21.39% 0.089 306.9)
XYZxyz(1.5280, 0.8343, 3.8211)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240838 #1C3808
analogous
#0C0838 #240838 #380834
triadic
#240838 #382408 #083824
tetradic
#240838 #380C08 #1C3808 #083438
square
#240838 #380C08 #1C3808 #083438
split-complementary
#240838 #343808 #08380C
monochromatic
#11041B #11041B #240838 #46106E #6917A3

Accessibility & contrast

On white

18.00
#240838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240838
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240838#FFFFFF#000000##FFFFFF
##2408381.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#21131F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240838;
/* rgb */ color: rgb(36, 8, 56);
/* oklch */ color: oklch(21.4% 0.089 306.9);
Tailwind
colors: {
  custom: {
    50: '#614a6f',
    500: '#240838',
    950: '#000000',
  },
}
SCSS
$custom: #240838;
$custom-light: #614a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#240838",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 275,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21391,
    "c": 0.08857,
    "h": 306.9
  },
  "luminance": 0.00834
}

Semantic roles & 50–950 ramp

primary
#240838
secondary
#477725
accent
#F23684
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240838

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

Preview Lab → · Contrast checker → · Palette generator →

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