#120024#120024

#120024 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 14.7% C 0.077 H 303.5°. Best body text is #FFFFFF at 19.98:1 contrast (WCAG AA passes).

Color values

HEX#120024
RGBrgb(18, 0, 36)
HSLhsl(270, 100%, 7%)
HSVhsv(270, 100%, 14%)
CMYKcmyk(50%, 100%, 0%, 85.9%)
CIE-LABlab(2.31, 13.29, -18.30)
CIE-LCHlch(2.31, 22.62, 306.00°)
OKLaboklab(14.74% 0.0426 -0.0643)
OKLCHoklch(14.74% 0.077 303.5)
XYZxyz(0.5678, 0.2560, 1.6882)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120024 #122400
analogous
#000024 #120024 #240024
triadic
#120024 #241200 #002412
tetradic
#120024 #240000 #122400 #002424
square
#120024 #240000 #122400 #002424
split-complementary
#120024 #242400 #002400
monochromatic
#0F001F #0F001F #120024 #310061 #4F009E

Accessibility & contrast

On white

19.98
#120024 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#120024 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120024
19.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120024#FFFFFF#000000##FFFFFF
##1200241.0019.981.0519.98
#FFFFFF19.981.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000825
Deuteranopia (green-blind)
#000823
Tritanopia (blue-blind)
#0E0710
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #120024;
/* rgb */ color: rgb(18, 0, 36);
/* oklch */ color: oklch(14.7% 0.077 303.5);
Tailwind
colors: {
  custom: {
    50: '#4f465e',
    500: '#120024',
    950: '#000000',
  },
}
SCSS
$custom: #120024;
$custom-light: #4f465e;
$custom-dark: #000000;
JSON
{
  "hex": "#120024",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 36
  },
  "hsl": {
    "h": 270,
    "s": 100,
    "l": 7.059
  },
  "oklch": {
    "l": 0.14739,
    "c": 0.07717,
    "h": 303.5
  },
  "luminance": 0.00256
}

Semantic roles & 50–950 ramp

primary
#120024
secondary
#406D13
accent
#FF2994
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020004
muted
#787779

Preview Lab

Preview with #120024

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

Preview Lab → · Contrast checker → · Palette generator →

#120024 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva