#240A3A#240A3A

#240A3A is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.088 H 304.8°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#240A3A
RGBrgb(36, 10, 58)
HSLhsl(273, 71%, 13%)
HSVhsv(273, 83%, 23%)
CMYKcmyk(37.9%, 82.8%, 0%, 77.3%)
CIE-LABlab(8.11, 24.22, -25.42)
CIE-LCHlch(8.11, 35.11, 313.61°)
OKLaboklab(21.86% 0.0502 -0.0723)
OKLCHoklch(21.86% 0.088 304.8)
XYZxyz(1.5996, 0.8976, 4.0912)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A3A #203A0A
analogous
#0C0A3A #240A3A #3A0A38
triadic
#240A3A #3A240A #0A3A24
tetradic
#240A3A #3A0C0A #203A0A #0A383A
square
#240A3A #3A0C0A #203A0A #0A383A
split-complementary
#240A3A #383A0A #0A3A0C
monochromatic
#10051A #10051A #240A3A #44136E #651CA2

Accessibility & contrast

On white

17.80
#240A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A3A
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A3A#FFFFFF#000000##FFFFFF
##240A3A1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#201521
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240a3a;
/* rgb */ color: rgb(36, 10, 58);
/* oklch */ color: oklch(21.9% 0.088 304.8);
Tailwind
colors: {
  custom: {
    50: '#614b70',
    500: '#240a3a',
    950: '#000000',
  },
}
SCSS
$custom: #240a3a;
$custom-light: #614b70;
$custom-dark: #000000;
JSON
{
  "hex": "#240a3a",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 58
  },
  "hsl": {
    "h": 272.5,
    "s": 70.588,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21861,
    "c": 0.08803,
    "h": 304.8
  },
  "luminance": 0.00898
}

Semantic roles & 50–950 ramp

primary
#240A3A
secondary
#4D7728
accent
#ED3A8C
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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