#140C1E#140C1E

#140C1E is a very dark, muted violet. Relative luminance 0.005; OKLCH L 17.5% C 0.038 H 303.2°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#140C1E
RGBrgb(20, 12, 30)
HSLhsl(267, 43%, 8%)
HSVhsv(267, 60%, 12%)
CMYKcmyk(33.3%, 60%, 0%, 88.2%)
CIE-LABlab(4.57, 7.13, -10.15)
CIE-LCHlch(4.57, 12.40, 305.07°)
OKLaboklab(17.54% 0.0207 -0.0315)
OKLCHoklch(17.54% 0.038 303.2)
XYZxyz(0.6543, 0.5054, 1.2911)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C1E #161E0C
analogous
#0C0D1E #140C1E #1D0C1E
triadic
#140C1E #1E140C #0C1E14
tetradic
#140C1E #1E0C0D #161E0C #0C1E1D
square
#140C1E #1E0C0D #161E0C #0C1E1D
split-complementary
#140C1E #1E1D0C #0D1E0C
monochromatic
#0F0916 #0F0916 #140C1E #311D4A #4E2F75

Accessibility & contrast

On white

19.07
#140C1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#140C1E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C1E
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C1E#FFFFFF#000000##FFFFFF
##140C1E1.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07101F
Deuteranopia (green-blind)
#09101E
Tritanopia (blue-blind)
#120F13
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #140c1e;
/* rgb */ color: rgb(20, 12, 30);
/* oklch */ color: oklch(17.5% 0.038 303.2);
Tailwind
colors: {
  custom: {
    50: '#514c59',
    500: '#140c1e',
    950: '#000000',
  },
}
SCSS
$custom: #140c1e;
$custom-light: #514c59;
$custom-dark: #000000;
JSON
{
  "hex": "#140c1e",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 30
  },
  "hsl": {
    "h": 266.667,
    "s": 42.857,
    "l": 8.235
  },
  "oklch": {
    "l": 0.17538,
    "c": 0.03767,
    "h": 303.2
  },
  "luminance": 0.00505
}

Semantic roles & 50–950 ramp

primary
#140C1E
secondary
#45572F
accent
#D3559B
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020103
muted
#787778

Preview Lab

Preview with #140C1E

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

Preview Lab → · Contrast checker → · Palette generator →

#140C1E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva