#240D40#240D40

#240D40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.091 H 299.7°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#240D40
RGBrgb(36, 13, 64)
HSLhsl(267, 66%, 15%)
HSVhsv(267, 80%, 25%)
CMYKcmyk(43.8%, 79.7%, 0%, 74.9%)
CIE-LABlab(9.26, 24.30, -27.84)
CIE-LCHlch(9.26, 36.95, 311.11°)
OKLaboklab(22.86% 0.0453 -0.0794)
OKLCHoklch(22.86% 0.091 299.7)
XYZxyz(1.7967, 1.0331, 4.9542)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D40 #29400D
analogous
#0D0F40 #240D40 #3E0D40
triadic
#240D40 #40240D #0D4024
tetradic
#240D40 #400D0F #29400D #0D403E
square
#240D40 #400D0F #29400D #0D403E
split-complementary
#240D40 #403E0D #0F400D
monochromatic
#0E0519 #0E0519 #240D40 #411773 #5D22A6

Accessibility & contrast

On white

17.40
#240D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240D40
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D40#FFFFFF#000000##FFFFFF
##240D401.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#1E1925
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240d40;
/* rgb */ color: rgb(36, 13, 64);
/* oklch */ color: oklch(22.9% 0.091 299.7);
Tailwind
colors: {
  custom: {
    50: '#624e75',
    500: '#240d40',
    950: '#000000',
  },
}
SCSS
$custom: #240d40;
$custom-light: #624e75;
$custom-dark: #000000;
JSON
{
  "hex": "#240d40",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 267.059,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22856,
    "c": 0.09145,
    "h": 299.7
  },
  "luminance": 0.01033
}

Semantic roles & 50–950 ramp

primary
#240D40
secondary
#587C2D
accent
#E93F9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240D40

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

Preview Lab → · Contrast checker → · Palette generator →

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