#140D2C#140D2C

#140D2C is a very dark, muted violet. Relative luminance 0.006; OKLCH L 18.9% C 0.060 H 289.8°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#140D2C
RGBrgb(20, 13, 44)
HSLhsl(254, 54%, 11%)
HSVhsv(254, 70%, 17%)
CMYKcmyk(54.5%, 70.5%, 0%, 82.7%)
CIE-LABlab(5.59, 12.22, -19.28)
CIE-LCHlch(5.59, 22.83, 302.36°)
OKLaboklab(18.92% 0.0204 -0.0564)
OKLCHoklch(18.92% 0.06 289.8)
XYZxyz(0.8869, 0.6184, 2.4550)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D2C #252C0D
analogous
#0D152C #140D2C #230D2C
triadic
#140D2C #2C140D #0D2C14
tetradic
#140D2C #2C0D15 #252C0D #0D2C23
square
#140D2C #2C0D15 #252C0D #0D2C23
split-complementary
#140D2C #2C230D #152C0D
monochromatic
#0B0718 #0B0718 #140D2C #291B5B #3F298A

Accessibility & contrast

On white

18.69
#140D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140D2C
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D2C#FFFFFF#000000##FFFFFF
##140D2C1.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132D
Deuteranopia (green-blind)
#01122B
Tritanopia (blue-blind)
#0D141A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140d2c;
/* rgb */ color: rgb(20, 13, 44);
/* oklch */ color: oklch(18.9% 0.060 289.8);
Tailwind
colors: {
  custom: {
    50: '#534c65',
    500: '#140d2c',
    950: '#000000',
  },
}
SCSS
$custom: #140d2c;
$custom-light: #534c65;
$custom-dark: #000000;
JSON
{
  "hex": "#140d2c",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 44
  },
  "hsl": {
    "h": 253.548,
    "s": 54.386,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18917,
    "c": 0.05998,
    "h": 289.8
  },
  "luminance": 0.00618
}

Semantic roles & 50–950 ramp

primary
#140D2C
secondary
#5A672E
accent
#DE4ABC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #140D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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