#12001E#12001E

#12001E is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.0% C 0.071 H 310.4°. Best body text is #FFFFFF at 20.11:1 contrast (WCAG AA passes).

Color values

HEX#12001E
RGBrgb(18, 0, 30)
HSLhsl(276, 100%, 6%)
HSVhsv(276, 100%, 12%)
CMYKcmyk(40%, 100%, 0%, 88.2%)
CIE-LABlab(2.01, 11.16, -14.02)
CIE-LCHlch(2.01, 17.92, 308.54°)
OKLaboklab(14.02% 0.0459 -0.0539)
OKLCHoklch(14.02% 0.071 310.4)
XYZxyz(0.4838, 0.2223, 1.2455)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12001E #0C1E00
analogous
#03001E #12001E #1E001B
triadic
#12001E #1E1200 #001E12
tetradic
#12001E #1E0300 #0C1E00 #001B1E
square
#12001E #1E0300 #0C1E00 #001B1E
split-complementary
#12001E #1B1E00 #001E03
monochromatic
#12001F #12001F #12001F #37005B #5B0098

Accessibility & contrast

On white

20.11
#12001E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12001E
20.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12001E#FFFFFF#000000##FFFFFF
##12001E1.0020.111.0420.11
#FFFFFF20.111.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071F
Deuteranopia (green-blind)
#00081D
Tritanopia (blue-blind)
#10050D
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #12001e;
/* rgb */ color: rgb(18, 0, 30);
/* oklch */ color: oklch(14.0% 0.071 310.4);
Tailwind
colors: {
  custom: {
    50: '#4f4659',
    500: '#12001e',
    950: '#000000',
  },
}
SCSS
$custom: #12001e;
$custom-light: #4f4659;
$custom-dark: #000000;
JSON
{
  "hex": "#12001e",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 30
  },
  "hsl": {
    "h": 276,
    "s": 100,
    "l": 5.882
  },
  "oklch": {
    "l": 0.14023,
    "c": 0.07079,
    "h": 310.4
  },
  "luminance": 0.00222
}

Semantic roles & 50–950 ramp

primary
#12001E
secondary
#346812
accent
#FF297E
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020003
muted
#787778

Preview Lab

Preview with #12001E

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

Preview Lab → · Contrast checker → · Palette generator →

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