#240A3E#240A3E

#240A3E is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.093 H 302.0°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#240A3E
RGBrgb(36, 10, 62)
HSLhsl(270, 72%, 14%)
HSVhsv(270, 84%, 24%)
CMYKcmyk(41.9%, 83.9%, 0%, 75.7%)
CIE-LABlab(8.48, 25.38, -27.69)
CIE-LCHlch(8.48, 37.56, 312.51°)
OKLaboklab(22.24% 0.0493 -0.079)
OKLCHoklch(22.24% 0.093 302)
XYZxyz(1.7054, 0.9399, 4.6481)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A3E #243E0A
analogous
#0A0A3E #240A3E #3E0A3E
triadic
#240A3E #3E240A #0A3E24
tetradic
#240A3E #3E0A0A #243E0A #0A3E3E
square
#240A3E #3E0A0A #243E0A #0A3E3E
split-complementary
#240A3E #3E3E0A #0A3E0A
monochromatic
#0F041A #0F041A #240A3E #431373 #611BA7

Accessibility & contrast

On white

17.68
#240A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A3E
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A3E#FFFFFF#000000##FFFFFF
##240A3E1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240a3e;
/* rgb */ color: rgb(36, 10, 62);
/* oklch */ color: oklch(22.2% 0.093 302.0);
Tailwind
colors: {
  custom: {
    50: '#624c74',
    500: '#240a3e',
    950: '#000000',
  },
}
SCSS
$custom: #240a3e;
$custom-light: #624c74;
$custom-dark: #000000;
JSON
{
  "hex": "#240a3e",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 270,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22241,
    "c": 0.0931,
    "h": 302
  },
  "luminance": 0.0094
}

Semantic roles & 50–950 ramp

primary
#240A3E
secondary
#527B28
accent
#EF3994
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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