#140B2C#140B2C

#140B2C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.5% C 0.064 H 291.5°. Best body text is #FFFFFF at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#140B2C
RGBrgb(20, 11, 44)
HSLhsl(256, 60%, 11%)
HSVhsv(256, 75%, 17%)
CMYKcmyk(54.5%, 75%, 0%, 82.7%)
CIE-LABlab(5.15, 13.14, -19.98)
CIE-LCHlch(5.15, 23.91, 303.34°)
OKLaboklab(18.5% 0.0233 -0.0591)
OKLCHoklch(18.5% 0.064 291.5)
XYZxyz(0.8627, 0.5699, 2.4469)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140B2C #232C0B
analogous
#0B122C #140B2C #240B2C
triadic
#140B2C #2C140B #0B2C14
tetradic
#140B2C #2C0B12 #232C0B #0B2C24
square
#140B2C #2C0B12 #232C0B #0B2C24
split-complementary
#140B2C #2C240B #122C0B
monochromatic
#0B0618 #0B0618 #140B2C #2A175D #41238E

Accessibility & contrast

On white

18.85
#140B2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#140B2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140B2C
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140B2C#FFFFFF#000000##FFFFFF
##140B2C1.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#0D1319
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #140b2c;
/* rgb */ color: rgb(20, 11, 44);
/* oklch */ color: oklch(18.5% 0.064 291.5);
Tailwind
colors: {
  custom: {
    50: '#534b65',
    500: '#140b2c',
    950: '#000000',
  },
}
SCSS
$custom: #140b2c;
$custom-light: #534b65;
$custom-dark: #000000;
JSON
{
  "hex": "#140b2c",
  "rgb": {
    "r": 20,
    "g": 11,
    "b": 44
  },
  "hsl": {
    "h": 256.364,
    "s": 60,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18498,
    "c": 0.06357,
    "h": 291.5
  },
  "luminance": 0.0057
}

Semantic roles & 50–950 ramp

primary
#140B2C
secondary
#57682B
accent
#E345B8
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #140B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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