#240D3D#240D3D

#240D3D is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.087 H 301.7°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#240D3D
RGBrgb(36, 13, 61)
HSLhsl(269, 65%, 15%)
HSVhsv(269, 79%, 24%)
CMYKcmyk(41%, 78.7%, 0%, 76.1%)
CIE-LABlab(8.99, 23.39, -26.15)
CIE-LCHlch(8.99, 35.08, 311.82°)
OKLaboklab(22.57% 0.0459 -0.0744)
OKLCHoklch(22.57% 0.087 301.7)
XYZxyz(1.7136, 0.9998, 4.5167)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D3D #263D0D
analogous
#0D0E3D #240D3D #3C0D3D
triadic
#240D3D #3D240D #0D3D24
tetradic
#240D3D #3D0D0E #263D0D #0D3D3C
square
#240D3D #3D0D0E #263D0D #0D3D3C
split-complementary
#240D3D #3D3C0D #0E3D0D
monochromatic
#0F0519 #0F0519 #240D3D #42186F #6023A2

Accessibility & contrast

On white

17.50
#240D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240D3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D3D
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D3D#FFFFFF#000000##FFFFFF
##240D3D1.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193E
Deuteranopia (green-blind)
#00193C
Tritanopia (blue-blind)
#1F1823
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240d3d;
/* rgb */ color: rgb(36, 13, 61);
/* oklch */ color: oklch(22.6% 0.087 301.7);
Tailwind
colors: {
  custom: {
    50: '#614d73',
    500: '#240d3d',
    950: '#000000',
  },
}
SCSS
$custom: #240d3d;
$custom-light: #614d73;
$custom-dark: #000000;
JSON
{
  "hex": "#240d3d",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 61
  },
  "hsl": {
    "h": 268.75,
    "s": 64.865,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22574,
    "c": 0.08745,
    "h": 301.7
  },
  "luminance": 0.01
}

Semantic roles & 50–950 ramp

primary
#240D3D
secondary
#54792D
accent
#E84097
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240D3D

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

Preview Lab → · Contrast checker → · Palette generator →

#240D3D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva