#12001F#12001F

#12001F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.1% C 0.072 H 309.1°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).

Color values

HEX#12001F
RGBrgb(18, 0, 31)
HSLhsl(275, 100%, 6%)
HSVhsv(275, 100%, 12%)
CMYKcmyk(41.9%, 100%, 0%, 87.8%)
CIE-LABlab(2.06, 11.49, -14.74)
CIE-LCHlch(2.06, 18.69, 307.93°)
OKLaboklab(14.14% 0.0453 -0.0557)
OKLCHoklch(14.14% 0.072 309.1)
XYZxyz(0.4967, 0.2275, 1.3138)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12001F #0D1F00
analogous
#02001F #12001F #1F001C
triadic
#12001F #1F1200 #001F12
tetradic
#12001F #1F0200 #0D1F00 #001C1F
square
#12001F #1F0200 #0D1F00 #001C1F
split-complementary
#12001F #1C1F00 #001F02
monochromatic
#12001F #12001F #12001F #36005C #590099

Accessibility & contrast

On white

20.08
#12001F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#12001F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12001F
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12001F#FFFFFF#000000##FFFFFF
##12001F1.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12001f;
/* rgb */ color: rgb(18, 0, 31);
/* oklch */ color: oklch(14.1% 0.072 309.1);
Tailwind
colors: {
  custom: {
    50: '#4f465a',
    500: '#12001f',
    950: '#000000',
  },
}
SCSS
$custom: #12001f;
$custom-light: #4f465a;
$custom-dark: #000000;
JSON
{
  "hex": "#12001f",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 31
  },
  "hsl": {
    "h": 274.839,
    "s": 100,
    "l": 6.078
  },
  "oklch": {
    "l": 0.14139,
    "c": 0.07183,
    "h": 309.1
  },
  "luminance": 0.00228
}

Semantic roles & 50–950 ramp

primary
#12001F
secondary
#366812
accent
#FF2983
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020004
muted
#787779

Preview Lab

Preview with #12001F

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

Preview Lab → · Contrast checker → · Palette generator →

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