#12001B#12001B

#12001B is a very dark, moderate purple. Relative luminance 0.002; OKLCH L 13.7% C 0.068 H 314.3°. Best body text is #FFFFFF at 20.16:1 contrast (WCAG AA passes).

Color values

HEX#12001B
RGBrgb(18, 0, 27)
HSLhsl(280, 100%, 5%)
HSVhsv(280, 100%, 11%)
CMYKcmyk(33.3%, 100%, 0%, 89.4%)
CIE-LABlab(1.88, 10.23, -11.79)
CIE-LCHlch(1.88, 15.61, 310.95°)
OKLaboklab(13.69% 0.0473 -0.0484)
OKLCHoklch(13.69% 0.068 314.3)
XYZxyz(0.4472, 0.2077, 1.0532)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12001B #091B00
analogous
#04001B #12001B #1B0016
triadic
#12001B #1B1200 #001B12
tetradic
#12001B #1B0400 #091B00 #00161B
square
#12001B #1B0400 #091B00 #00161B
split-complementary
#12001B #161B00 #001B04
monochromatic
#14001F #14001F #14001F #3B0058 #640095

Accessibility & contrast

On white

20.16
#12001B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#12001B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12001B
20.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12001B#FFFFFF#000000##FFFFFF
##12001B1.0020.161.0420.16
#FFFFFF20.161.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00061C
Deuteranopia (green-blind)
#00071A
Tritanopia (blue-blind)
#11040B
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #12001b;
/* rgb */ color: rgb(18, 0, 27);
/* oklch */ color: oklch(13.7% 0.068 314.3);
Tailwind
colors: {
  custom: {
    50: '#4f4657',
    500: '#12001b',
    950: '#000000',
  },
}
SCSS
$custom: #12001b;
$custom-light: #4f4657;
$custom-dark: #000000;
JSON
{
  "hex": "#12001b",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 27
  },
  "hsl": {
    "h": 280,
    "s": 100,
    "l": 5.294
  },
  "oklch": {
    "l": 0.13687,
    "c": 0.06768,
    "h": 314.3
  },
  "luminance": 0.00208
}

Semantic roles & 50–950 ramp

primary
#12001B
secondary
#2E6512
accent
#FF2970
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020003
muted
#787778

Preview Lab

Preview with #12001B

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

Preview Lab → · Contrast checker → · Palette generator →

#12001B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva