#240D43#240D43

#240D43 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.095 H 297.9°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#240D43
RGBrgb(36, 13, 67)
HSLhsl(266, 68%, 16%)
HSVhsv(266, 81%, 26%)
CMYKcmyk(46.3%, 80.6%, 0%, 73.7%)
CIE-LABlab(9.55, 25.21, -29.51)
CIE-LCHlch(9.55, 38.81, 310.51°)
OKLaboklab(23.15% 0.0447 -0.0843)
OKLCHoklch(23.15% 0.095 297.9)
XYZxyz(1.8843, 1.0681, 5.4160)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D43 #2C430D
analogous
#0D1143 #240D43 #3F0D43
triadic
#240D43 #43240D #0D4324
tetradic
#240D43 #430D11 #2C430D #0D433F
square
#240D43 #430D11 #2C430D #0D433F
split-complementary
#240D43 #433F0D #11430D
monochromatic
#0E051A #0E051A #240D43 #401776 #5B21AA

Accessibility & contrast

On white

17.30
#240D43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D43
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D43#FFFFFF#000000##FFFFFF
##240D431.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B45
Deuteranopia (green-blind)
#001A42
Tritanopia (blue-blind)
#1C1B27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240d43;
/* rgb */ color: rgb(36, 13, 67);
/* oklch */ color: oklch(23.1% 0.095 297.9);
Tailwind
colors: {
  custom: {
    50: '#624e78',
    500: '#240d43',
    950: '#000000',
  },
}
SCSS
$custom: #240d43;
$custom-light: #624e78;
$custom-dark: #000000;
JSON
{
  "hex": "#240d43",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 67
  },
  "hsl": {
    "h": 265.556,
    "s": 67.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23145,
    "c": 0.09542,
    "h": 297.9
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#240D43
secondary
#5C7E2D
accent
#EA3DA1
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240D43

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

Preview Lab → · Contrast checker → · Palette generator →

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