#140F2A#140F2A

#140F2A is a very dark, muted violet. Relative luminance 0.007; OKLCH L 19.2% C 0.053 H 288.9°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#140F2A
RGBrgb(20, 15, 42)
HSLhsl(251, 47%, 11%)
HSVhsv(251, 64%, 16%)
CMYKcmyk(52.4%, 64.3%, 0%, 83.5%)
CIE-LABlab(5.94, 10.31, -17.22)
CIE-LCHlch(5.94, 20.07, 300.90°)
OKLaboklab(19.19% 0.0171 -0.0499)
OKLCHoklch(19.19% 0.053 288.9)
XYZxyz(0.8771, 0.6575, 2.2707)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F2A #252A0F
analogous
#0F172A #140F2A #210F2A
triadic
#140F2A #2A140F #0F2A14
tetradic
#140F2A #2A0F17 #252A0F #0F2A21
square
#140F2A #2A0F17 #252A0F #0F2A21
split-complementary
#140F2A #2A210F #172A0F
monochromatic
#0B0817 #0B0817 #140F2A #291F57 #3F2F84

Accessibility & contrast

On white

18.56
#140F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F2A
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F2A#FFFFFF#000000##FFFFFF
##140F2A1.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142B
Deuteranopia (green-blind)
#051229
Tritanopia (blue-blind)
#0E151A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #140f2a;
/* rgb */ color: rgb(20, 15, 42);
/* oklch */ color: oklch(19.2% 0.053 288.9);
Tailwind
colors: {
  custom: {
    50: '#534d63',
    500: '#140f2a',
    950: '#000000',
  },
}
SCSS
$custom: #140f2a;
$custom-light: #534d63;
$custom-dark: #000000;
JSON
{
  "hex": "#140f2a",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 251.111,
    "s": 47.368,
    "l": 11.176
  },
  "oklch": {
    "l": 0.1919,
    "c": 0.05278,
    "h": 288.9
  },
  "luminance": 0.00658
}

Semantic roles & 50–950 ramp

primary
#140F2A
secondary
#5A6332
accent
#D751BE
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #140F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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