#140F2D#140F2D

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

Color values

HEX#140F2D
RGBrgb(20, 15, 45)
HSLhsl(250, 50%, 12%)
HSVhsv(250, 67%, 18%)
CMYKcmyk(55.6%, 66.7%, 0%, 82.4%)
CIE-LABlab(6.14, 11.62, -19.15)
CIE-LCHlch(6.14, 22.40, 301.24°)
OKLaboklab(19.45% 0.0173 -0.0554)
OKLCHoklch(19.45% 0.058 287.4)
XYZxyz(0.9328, 0.6798, 2.5642)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F2D #282D0F
analogous
#0F192D #140F2D #230F2D
triadic
#140F2D #2D140F #0F2D14
tetradic
#140F2D #2D0F19 #282D0F #0F2D23
square
#140F2D #2D0F19 #282D0F #0F2D23
split-complementary
#140F2D #2D230F #192D0F
monochromatic
#0A0817 #0A0817 #140F2D #281E5B #3D2E89

Accessibility & contrast

On white

18.49
#140F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#140F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F2D
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F2D#FFFFFF#000000##FFFFFF
##140F2D1.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02142E
Deuteranopia (green-blind)
#02132C
Tritanopia (blue-blind)
#0C161C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140f2d;
/* rgb */ color: rgb(20, 15, 45);
/* oklch */ color: oklch(19.4% 0.058 287.4);
Tailwind
colors: {
  custom: {
    50: '#534d66',
    500: '#140f2d',
    950: '#000000',
  },
}
SCSS
$custom: #140f2d;
$custom-light: #534d66;
$custom-dark: #000000;
JSON
{
  "hex": "#140f2d",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 250,
    "s": 50,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19449,
    "c": 0.05802,
    "h": 287.4
  },
  "luminance": 0.0068
}

Semantic roles & 50–950 ramp

primary
#140F2D
secondary
#5E6631
accent
#DA4EC2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #140F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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