#240A3C#240A3C

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

Color values

HEX#240A3C
RGBrgb(36, 10, 60)
HSLhsl(271, 71%, 14%)
HSVhsv(271, 83%, 24%)
CMYKcmyk(40%, 83.3%, 0%, 76.5%)
CIE-LABlab(8.29, 24.80, -26.56)
CIE-LCHlch(8.29, 36.34, 313.03°)
OKLaboklab(22.05% 0.0498 -0.0756)
OKLCHoklch(22.05% 0.091 303.4)
XYZxyz(1.6515, 0.9184, 4.3644)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A3C #223C0A
analogous
#0B0A3C #240A3C #3C0A3B
triadic
#240A3C #3C240A #0A3C24
tetradic
#240A3C #3C0B0A #223C0A #0A3B3C
square
#240A3C #3C0B0A #223C0A #0A3B3C
split-complementary
#240A3C #3B3C0A #0A3C0B
monochromatic
#10041A #10041A #240A3C #431370 #631BA5

Accessibility & contrast

On white

17.74
#240A3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A3C
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A3C#FFFFFF#000000##FFFFFF
##240A3C1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#1F1622
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240a3c;
/* rgb */ color: rgb(36, 10, 60);
/* oklch */ color: oklch(22.0% 0.091 303.4);
Tailwind
colors: {
  custom: {
    50: '#624c72',
    500: '#240a3c',
    950: '#000000',
  },
}
SCSS
$custom: #240a3c;
$custom-light: #624c72;
$custom-dark: #000000;
JSON
{
  "hex": "#240a3c",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 60
  },
  "hsl": {
    "h": 271.2,
    "s": 71.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22049,
    "c": 0.09057,
    "h": 303.4
  },
  "luminance": 0.00918
}

Semantic roles & 50–950 ramp

primary
#240A3C
secondary
#4F7928
accent
#EE3A90
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #240A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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