#140C2D#140C2D

#140C2D is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.063 H 290.1°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#140C2D
RGBrgb(20, 12, 45)
HSLhsl(255, 58%, 11%)
HSVhsv(255, 73%, 18%)
CMYKcmyk(55.6%, 73.3%, 0%, 82.4%)
CIE-LABlab(5.43, 13.16, -20.28)
CIE-LCHlch(5.43, 24.17, 302.97°)
OKLaboklab(18.8% 0.0218 -0.0596)
OKLCHoklch(18.8% 0.063 290.1)
XYZxyz(0.8935, 0.6011, 2.5511)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C2D #252D0C
analogous
#0C142D #140C2D #240C2D
triadic
#140C2D #2D140C #0C2D14
tetradic
#140C2D #2D0C14 #252D0C #0C2D24
square
#140C2D #2D0C14 #252D0C #0C2D24
split-complementary
#140C2D #2D240C #142D0C
monochromatic
#0B0618 #0B0618 #140C2D #29195D #3F268E

Accessibility & contrast

On white

18.75
#140C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C2D
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C2D#FFFFFF#000000##FFFFFF
##140C2D1.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#0C131A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140c2d;
/* rgb */ color: rgb(20, 12, 45);
/* oklch */ color: oklch(18.8% 0.063 290.1);
Tailwind
colors: {
  custom: {
    50: '#534c66',
    500: '#140c2d',
    950: '#000000',
  },
}
SCSS
$custom: #140c2d;
$custom-light: #534c66;
$custom-dark: #000000;
JSON
{
  "hex": "#140c2d",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 254.545,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18798,
    "c": 0.06343,
    "h": 290.1
  },
  "luminance": 0.00601
}

Semantic roles & 50–950 ramp

primary
#140C2D
secondary
#5A692C
accent
#E147BC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #140C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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