#240E3A#240E3A

#240E3A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.082 H 303.4°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#240E3A
RGBrgb(36, 14, 58)
HSLhsl(270, 61%, 14%)
HSVhsv(270, 76%, 23%)
CMYKcmyk(37.9%, 75.9%, 0%, 77.3%)
CIE-LABlab(8.95, 21.89, -24.06)
CIE-LCHlch(8.95, 32.53, 312.29°)
OKLaboklab(22.46% 0.045 -0.0683)
OKLCHoklch(22.46% 0.082 303.4)
XYZxyz(1.6481, 0.9946, 4.1073)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E3A #243A0E
analogous
#0E0E3A #240E3A #3A0E3A
triadic
#240E3A #3A240E #0E3A24
tetradic
#240E3A #3A0E0E #243A0E #0E3A3A
square
#240E3A #3A0E0E #243A0E #0E3A3A
split-complementary
#240E3A #3A3A0E #0E3A0E
monochromatic
#0F0619 #0F0619 #240E3A #431A6B #61269D

Accessibility & contrast

On white

17.51
#240E3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240E3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E3A
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E3A#FFFFFF#000000##FFFFFF
##240E3A1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193B
Deuteranopia (green-blind)
#021939
Tritanopia (blue-blind)
#201822
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240e3a;
/* rgb */ color: rgb(36, 14, 58);
/* oklch */ color: oklch(22.5% 0.082 303.4);
Tailwind
colors: {
  custom: {
    50: '#614e70',
    500: '#240e3a',
    950: '#000000',
  },
}
SCSS
$custom: #240e3a;
$custom-light: #614e70;
$custom-dark: #000000;
JSON
{
  "hex": "#240e3a",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 58
  },
  "hsl": {
    "h": 270,
    "s": 61.111,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2246,
    "c": 0.08181,
    "h": 303.4
  },
  "luminance": 0.00995
}

Semantic roles & 50–950 ramp

primary
#240E3A
secondary
#52752F
accent
#E44494
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240E3A

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

Preview Lab → · Contrast checker → · Palette generator →

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