#240837#240837

#240837 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.087 H 307.7°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#240837
RGBrgb(36, 8, 55)
HSLhsl(276, 75%, 12%)
HSVhsv(276, 85%, 22%)
CMYKcmyk(34.5%, 85.5%, 0%, 78.4%)
CIE-LABlab(7.45, 24.45, -24.31)
CIE-LCHlch(7.45, 34.48, 315.16°)
OKLaboklab(21.3% 0.0535 -0.0691)
OKLCHoklch(21.3% 0.087 307.7)
XYZxyz(1.5038, 0.8246, 3.6936)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240837 #1B3708
analogous
#0D0837 #240837 #370832
triadic
#240837 #372408 #083724
tetradic
#240837 #370D08 #1B3708 #083237
square
#240837 #370D08 #1B3708 #083237
split-complementary
#240837 #323708 #08370D
monochromatic
#11041B #11041B #240837 #47106C #6A18A2

Accessibility & contrast

On white

18.03
#240837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240837
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240837#FFFFFF#000000##FFFFFF
##2408371.0018.031.1718.03
#FFFFFF18.031.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001538
Deuteranopia (green-blind)
#001736
Tritanopia (blue-blind)
#21131F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240837;
/* rgb */ color: rgb(36, 8, 55);
/* oklch */ color: oklch(21.3% 0.087 307.7);
Tailwind
colors: {
  custom: {
    50: '#614a6e',
    500: '#240837',
    950: '#000000',
  },
}
SCSS
$custom: #240837;
$custom-light: #614a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#240837",
  "rgb": {
    "r": 36,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 275.745,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21298,
    "c": 0.08735,
    "h": 307.7
  },
  "luminance": 0.00825
}

Semantic roles & 50–950 ramp

primary
#240837
secondary
#467625
accent
#F13782
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240837

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

Preview Lab → · Contrast checker → · Palette generator →

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