#240D3F#240D3F

#240D3F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.090 H 300.3°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#240D3F
RGBrgb(36, 13, 63)
HSLhsl(268, 66%, 15%)
HSVhsv(268, 79%, 25%)
CMYKcmyk(42.9%, 79.4%, 0%, 75.3%)
CIE-LABlab(9.17, 23.99, -27.28)
CIE-LCHlch(9.17, 36.33, 311.33°)
OKLaboklab(22.76% 0.0455 -0.0778)
OKLCHoklch(22.76% 0.09 300.3)
XYZxyz(1.7685, 1.0218, 4.8057)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D3F #283F0D
analogous
#0D0F3F #240D3F #3D0D3F
triadic
#240D3F #3F240D #0D3F24
tetradic
#240D3F #3F0D0F #283F0D #0D3F3D
square
#240D3F #3F0D0F #283F0D #0D3F3D
split-complementary
#240D3F #3F3D0D #0F3F0D
monochromatic
#0E0519 #0E0519 #240D3F #411772 #5E22A4

Accessibility & contrast

On white

17.44
#240D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D3F
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D3F#FFFFFF#000000##FFFFFF
##240D3F1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#1E1924
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240d3f;
/* rgb */ color: rgb(36, 13, 63);
/* oklch */ color: oklch(22.8% 0.090 300.3);
Tailwind
colors: {
  custom: {
    50: '#624d74',
    500: '#240d3f',
    950: '#000000',
  },
}
SCSS
$custom: #240d3f;
$custom-light: #624d74;
$custom-dark: #000000;
JSON
{
  "hex": "#240d3f",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 267.6,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22761,
    "c": 0.09012,
    "h": 300.3
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#240D3F
secondary
#577B2D
accent
#E93F9B
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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