#240D3E#240D3E

#240D3E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.089 H 301.0°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#240D3E
RGBrgb(36, 13, 62)
HSLhsl(268, 65%, 15%)
HSVhsv(268, 79%, 24%)
CMYKcmyk(41.9%, 79%, 0%, 75.7%)
CIE-LABlab(9.08, 23.69, -26.72)
CIE-LCHlch(9.08, 35.71, 311.57°)
OKLaboklab(22.67% 0.0457 -0.0761)
OKLCHoklch(22.67% 0.089 301)
XYZxyz(1.7408, 1.0107, 4.6599)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240D3E #273E0D
analogous
#0D0F3E #240D3E #3D0D3E
triadic
#240D3E #3E240D #0D3E24
tetradic
#240D3E #3E0D0F #273E0D #0D3E3D
square
#240D3E #3E0D0F #273E0D #0D3E3D
split-complementary
#240D3E #3E3D0D #0F3E0D
monochromatic
#0F0519 #0F0519 #240D3E #411871 #5F22A3

Accessibility & contrast

On white

17.47
#240D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240D3E
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240D3E#FFFFFF#000000##FFFFFF
##240D3E1.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#1E1924
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240d3e;
/* rgb */ color: rgb(36, 13, 62);
/* oklch */ color: oklch(22.7% 0.089 301.0);
Tailwind
colors: {
  custom: {
    50: '#624d74',
    500: '#240d3e',
    950: '#000000',
  },
}
SCSS
$custom: #240d3e;
$custom-light: #624d74;
$custom-dark: #000000;
JSON
{
  "hex": "#240d3e",
  "rgb": {
    "r": 36,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 268.163,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22667,
    "c": 0.08879,
    "h": 301
  },
  "luminance": 0.01011
}

Semantic roles & 50–950 ramp

primary
#240D3E
secondary
#567A2D
accent
#E84099
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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