#140C2E#140C2E

#140C2E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.065 H 289.5°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#140C2E
RGBrgb(20, 12, 46)
HSLhsl(254, 59%, 11%)
HSVhsv(254, 74%, 18%)
CMYKcmyk(56.5%, 73.9%, 0%, 82%)
CIE-LABlab(5.50, 13.61, -20.92)
CIE-LCHlch(5.50, 24.96, 303.06°)
OKLaboklab(18.89% 0.0217 -0.0613)
OKLCHoklch(18.89% 0.065 289.5)
XYZxyz(0.9130, 0.6089, 2.6537)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C2E #262E0C
analogous
#0C152E #140C2E #250C2E
triadic
#140C2E #2E140C #0C2E14
tetradic
#140C2E #2E0C15 #262E0C #0C2E25
square
#140C2E #2E0C15 #262E0C #0C2E25
split-complementary
#140C2E #2E250C #152E0C
monochromatic
#0B0618 #0B0618 #140C2E #29195F #3E258F

Accessibility & contrast

On white

18.72
#140C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C2E
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C2E#FFFFFF#000000##FFFFFF
##140C2E1.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#0C141B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140c2e;
/* rgb */ color: rgb(20, 12, 46);
/* oklch */ color: oklch(18.9% 0.065 289.5);
Tailwind
colors: {
  custom: {
    50: '#534c67',
    500: '#140c2e',
    950: '#000000',
  },
}
SCSS
$custom: #140c2e;
$custom-light: #534c67;
$custom-dark: #000000;
JSON
{
  "hex": "#140c2e",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 254.118,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18893,
    "c": 0.06508,
    "h": 289.5
  },
  "luminance": 0.00609
}

Semantic roles & 50–950 ramp

primary
#140C2E
secondary
#5B6A2C
accent
#E246BD
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #140C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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