#240B3E#240B3E

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

Color values

HEX#240B3E
RGBrgb(36, 11, 62)
HSLhsl(269, 70%, 14%)
HSVhsv(269, 82%, 24%)
CMYKcmyk(41.9%, 82.3%, 0%, 75.7%)
CIE-LABlab(8.67, 24.83, -27.38)
CIE-LCHlch(8.67, 36.96, 312.21°)
OKLaboklab(22.38% 0.0482 -0.078)
OKLCHoklch(22.38% 0.092 301.7)
XYZxyz(1.7165, 0.9622, 4.6518)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B3E #253E0B
analogous
#0B0C3E #240B3E #3E0B3E
triadic
#240B3E #3E240B #0B3E24
tetradic
#240B3E #3E0B0C #253E0B #0B3E3E
square
#240B3E #3E0B0C #253E0B #0B3E3E
split-complementary
#240B3E #3E3E0B #0C3E0B
monochromatic
#0F051A #0F051A #240B3E #421472 #601DA6

Accessibility & contrast

On white

17.61
#240B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B3E
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B3E#FFFFFF#000000##FFFFFF
##240B3E1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240b3e;
/* rgb */ color: rgb(36, 11, 62);
/* oklch */ color: oklch(22.4% 0.092 301.7);
Tailwind
colors: {
  custom: {
    50: '#624c74',
    500: '#240b3e',
    950: '#000000',
  },
}
SCSS
$custom: #240b3e;
$custom-light: #624c74;
$custom-dark: #000000;
JSON
{
  "hex": "#240b3e",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 62
  },
  "hsl": {
    "h": 269.412,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22377,
    "c": 0.09171,
    "h": 301.7
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#240B3E
secondary
#537B2A
accent
#ED3B96
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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