#140C2F#140C2F

#140C2F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.067 H 289.0°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#140C2F
RGBrgb(20, 12, 47)
HSLhsl(254, 59%, 12%)
HSVhsv(254, 74%, 18%)
CMYKcmyk(57.4%, 74.5%, 0%, 81.6%)
CIE-LABlab(5.57, 14.07, -21.55)
CIE-LCHlch(5.57, 25.73, 303.14°)
OKLaboklab(18.99% 0.0217 -0.0631)
OKLCHoklch(18.99% 0.067 289)
XYZxyz(0.9329, 0.6169, 2.7587)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C2F #272F0C
analogous
#0C162F #140C2F #260C2F
triadic
#140C2F #2F140C #0C2F14
tetradic
#140C2F #2F0C16 #272F0C #0C2F26
square
#140C2F #2F0C16 #272F0C #0C2F26
split-complementary
#140C2F #2F260C #162F0C
monochromatic
#0A0618 #0A0618 #140C2F #291860 #3D2591

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##140C2F#FFFFFF#000000##FFFFFF
##140C2F1.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)
#001330
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#0B141B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140c2f;
/* rgb */ color: rgb(20, 12, 47);
/* oklch */ color: oklch(19.0% 0.067 289.0);
Tailwind
colors: {
  custom: {
    50: '#544b68',
    500: '#140c2f',
    950: '#000000',
  },
}
SCSS
$custom: #140c2f;
$custom-light: #544b68;
$custom-dark: #000000;
JSON
{
  "hex": "#140c2f",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 253.714,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.1899,
    "c": 0.06671,
    "h": 289
  },
  "luminance": 0.00617
}

Semantic roles & 50–950 ramp

primary
#140C2F
secondary
#5C6B2C
accent
#E345BF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #140C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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