#240A34#240A34

#240A34 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.080 H 309.6°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#240A34
RGBrgb(36, 10, 52)
HSLhsl(277, 68%, 12%)
HSVhsv(277, 81%, 20%)
CMYKcmyk(30.8%, 80.8%, 0%, 79.6%)
CIE-LABlab(7.59, 22.50, -21.90)
CIE-LCHlch(7.59, 31.39, 315.77°)
OKLaboklab(21.32% 0.0513 -0.062)
OKLCHoklch(21.32% 0.08 309.6)
XYZxyz(1.4558, 0.8401, 3.3336)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A34 #1A340A
analogous
#0F0A34 #240A34 #340A2F
triadic
#240A34 #34240A #0A3424
tetradic
#240A34 #340F0A #1A340A #0A2F34
square
#240A34 #340F0A #1A340A #0A2F34
split-complementary
#240A34 #2F340A #0A340F
monochromatic
#12051A #12051A #240A34 #481467 #6B1E9B

Accessibility & contrast

On white

17.98
#240A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240A34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A34
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A34#FFFFFF#000000##FFFFFF
##240A341.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#041733
Tritanopia (blue-blind)
#22131D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240a34;
/* rgb */ color: rgb(36, 10, 52);
/* oklch */ color: oklch(21.3% 0.080 309.6);
Tailwind
colors: {
  custom: {
    50: '#614b6c',
    500: '#240a34',
    950: '#000000',
  },
}
SCSS
$custom: #240a34;
$custom-light: #614b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240a34",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 52
  },
  "hsl": {
    "h": 277.143,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21319,
    "c": 0.08042,
    "h": 309.6
  },
  "luminance": 0.0084
}

Semantic roles & 50–950 ramp

primary
#240A34
secondary
#447128
accent
#EB3D7F
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240A34

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

Preview Lab → · Contrast checker → · Palette generator →

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