#140E2F#140E2F

#140E2F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.4% C 0.063 H 287.3°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#140E2F
RGBrgb(20, 14, 47)
HSLhsl(251, 54%, 12%)
HSVhsv(251, 70%, 18%)
CMYKcmyk(57.4%, 70.2%, 0%, 81.6%)
CIE-LABlab(6.03, 13.05, -20.81)
CIE-LCHlch(6.03, 24.57, 302.09°)
OKLaboklab(19.41% 0.0188 -0.0604)
OKLCHoklch(19.41% 0.063 287.3)
XYZxyz(0.9585, 0.6680, 2.7672)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140E2F #292F0E
analogous
#0E192F #140E2F #250E2F
triadic
#140E2F #2F140E #0E2F14
tetradic
#140E2F #2F0E19 #292F0E #0E2F25
square
#140E2F #2F0E19 #292F0E #0E2F25
split-complementary
#140E2F #2F250E #192F0E
monochromatic
#0A0718 #0A0718 #140E2F #281C5E #3C2A8D

Accessibility & contrast

On white

18.53
#140E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140E2F
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140E2F#FFFFFF#000000##FFFFFF
##140E2F1.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001430
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#0B151C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #140e2f;
/* rgb */ color: rgb(20, 14, 47);
/* oklch */ color: oklch(19.4% 0.063 287.3);
Tailwind
colors: {
  custom: {
    50: '#544d68',
    500: '#140e2f',
    950: '#000000',
  },
}
SCSS
$custom: #140e2f;
$custom-light: #544d68;
$custom-dark: #000000;
JSON
{
  "hex": "#140e2f",
  "rgb": {
    "r": 20,
    "g": 14,
    "b": 47
  },
  "hsl": {
    "h": 250.909,
    "s": 54.098,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19409,
    "c": 0.06323,
    "h": 287.3
  },
  "luminance": 0.00668
}

Semantic roles & 50–950 ramp

primary
#140E2F
secondary
#5F692F
accent
#DD4AC3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #140E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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