#140F2C#140F2C

#140F2C is a very dark, muted violet. Relative luminance 0.007; OKLCH L 19.4% C 0.056 H 287.9°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#140F2C
RGBrgb(20, 15, 44)
HSLhsl(250, 49%, 12%)
HSVhsv(250, 66%, 17%)
CMYKcmyk(54.5%, 65.9%, 0%, 82.7%)
CIE-LABlab(6.07, 11.18, -18.52)
CIE-LCHlch(6.07, 21.63, 301.13°)
OKLaboklab(19.36% 0.0173 -0.0536)
OKLCHoklch(19.36% 0.056 287.9)
XYZxyz(0.9138, 0.6722, 2.4640)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F2C #272C0F
analogous
#0F192C #140F2C #230F2C
triadic
#140F2C #2C140F #0F2C14
tetradic
#140F2C #2C0F19 #272C0F #0F2C23
square
#140F2C #2C0F19 #272C0F #0F2C23
split-complementary
#140F2C #2C230F #192C0F
monochromatic
#0A0817 #0A0817 #140F2C #291F5A #3D2E87

Accessibility & contrast

On white

18.51
#140F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#140F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F2C
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F2C#FFFFFF#000000##FFFFFF
##140F2C1.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142D
Deuteranopia (green-blind)
#03132B
Tritanopia (blue-blind)
#0D151B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #140f2c;
/* rgb */ color: rgb(20, 15, 44);
/* oklch */ color: oklch(19.4% 0.056 287.9);
Tailwind
colors: {
  custom: {
    50: '#534d65',
    500: '#140f2c',
    950: '#000000',
  },
}
SCSS
$custom: #140f2c;
$custom-light: #534d65;
$custom-dark: #000000;
JSON
{
  "hex": "#140f2c",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 250.345,
    "s": 49.153,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19362,
    "c": 0.05629,
    "h": 287.9
  },
  "luminance": 0.00672
}

Semantic roles & 50–950 ramp

primary
#140F2C
secondary
#5C6531
accent
#D94FC1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #140F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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