#240A3B#240A3B

#240A3B is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.089 H 304.1°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#240A3B
RGBrgb(36, 10, 59)
HSLhsl(272, 71%, 14%)
HSVhsv(272, 83%, 23%)
CMYKcmyk(39%, 83.1%, 0%, 76.9%)
CIE-LABlab(8.20, 24.51, -25.99)
CIE-LCHlch(8.20, 35.73, 313.31°)
OKLaboklab(21.95% 0.05 -0.074)
OKLCHoklch(21.95% 0.089 304.1)
XYZxyz(1.6253, 0.9079, 4.2264)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A3B #213B0A
analogous
#0C0A3B #240A3B #3B0A39
triadic
#240A3B #3B240A #0A3B24
tetradic
#240A3B #3B0C0A #213B0A #0A393B
square
#240A3B #3B0C0A #213B0A #0A393B
split-complementary
#240A3B #393B0A #0A3B0C
monochromatic
#10041A #10041A #240A3B #44136F #641CA4

Accessibility & contrast

On white

17.77
#240A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240A3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A3B
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A3B#FFFFFF#000000##FFFFFF
##240A3B1.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173C
Deuteranopia (green-blind)
#00183A
Tritanopia (blue-blind)
#201621
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240a3b;
/* rgb */ color: rgb(36, 10, 59);
/* oklch */ color: oklch(22.0% 0.089 304.1);
Tailwind
colors: {
  custom: {
    50: '#624c71',
    500: '#240a3b',
    950: '#000000',
  },
}
SCSS
$custom: #240a3b;
$custom-light: #624c71;
$custom-dark: #000000;
JSON
{
  "hex": "#240a3b",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 59
  },
  "hsl": {
    "h": 271.837,
    "s": 71.014,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21954,
    "c": 0.08929,
    "h": 304.1
  },
  "luminance": 0.00908
}

Semantic roles & 50–950 ramp

primary
#240A3B
secondary
#4E7828
accent
#EE3A8E
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #240A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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