#140C2A#140C2A

#140C2A is a very dark, muted violet. Relative luminance 0.006; OKLCH L 18.5% C 0.058 H 292.0°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#140C2A
RGBrgb(20, 12, 42)
HSLhsl(256, 56%, 11%)
HSVhsv(256, 71%, 16%)
CMYKcmyk(52.4%, 71.4%, 0%, 83.5%)
CIE-LABlab(5.23, 11.78, -18.34)
CIE-LCHlch(5.23, 21.80, 302.72°)
OKLaboklab(18.52% 0.0219 -0.0542)
OKLCHoklch(18.52% 0.058 292)
XYZxyz(0.8378, 0.5788, 2.2576)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C2A #222A0C
analogous
#0C132A #140C2A #230C2A
triadic
#140C2A #2A140C #0C2A14
tetradic
#140C2A #2A0C13 #222A0C #0C2A23
square
#140C2A #2A0C13 #222A0C #0C2A23
split-complementary
#140C2A #2A230C #132A0C
monochromatic
#0B0718 #0B0718 #140C2A #2B1A5A #412789

Accessibility & contrast

On white

18.82
#140C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#140C2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C2A
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C2A#FFFFFF#000000##FFFFFF
##140C2A1.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01122B
Deuteranopia (green-blind)
#021129
Tritanopia (blue-blind)
#0E1319
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #140c2a;
/* rgb */ color: rgb(20, 12, 42);
/* oklch */ color: oklch(18.5% 0.058 292.0);
Tailwind
colors: {
  custom: {
    50: '#524c63',
    500: '#140c2a',
    950: '#000000',
  },
}
SCSS
$custom: #140c2a;
$custom-light: #524c63;
$custom-dark: #000000;
JSON
{
  "hex": "#140c2a",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 256,
    "s": 55.556,
    "l": 10.588
  },
  "oklch": {
    "l": 0.1852,
    "c": 0.05844,
    "h": 292
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#140C2A
secondary
#56652D
accent
#DF49B7
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #140C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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