#140C26#140C26

#140C26 is a very dark, muted violet. Relative luminance 0.006; OKLCH L 18.2% C 0.052 H 294.9°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#140C26
RGBrgb(20, 12, 38)
HSLhsl(258, 52%, 10%)
HSVhsv(258, 68%, 15%)
CMYKcmyk(47.4%, 68.4%, 0%, 85.1%)
CIE-LABlab(4.98, 10.05, -15.69)
CIE-LCHlch(4.98, 18.64, 302.65°)
OKLaboklab(18.17% 0.0218 -0.0468)
OKLCHoklch(18.17% 0.052 294.9)
XYZxyz(0.7697, 0.5516, 1.8993)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C26 #1E260C
analogous
#0C1126 #140C26 #210C26
triadic
#140C26 #26140C #0C2614
tetradic
#140C26 #260C11 #1E260C #0C2621
square
#140C26 #260C11 #1E260C #0C2621
split-complementary
#140C26 #26210C #11260C
monochromatic
#0C0717 #0C0717 #140C26 #2C1B55 #452983

Accessibility & contrast

On white

18.91
#140C26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#140C26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C26
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C26#FFFFFF#000000##FFFFFF
##140C261.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031127
Deuteranopia (green-blind)
#041025
Tritanopia (blue-blind)
#101117
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #140c26;
/* rgb */ color: rgb(20, 12, 38);
/* oklch */ color: oklch(18.2% 0.052 294.9);
Tailwind
colors: {
  custom: {
    50: '#524c60',
    500: '#140c26',
    950: '#000000',
  },
}
SCSS
$custom: #140c26;
$custom-light: #524c60;
$custom-dark: #000000;
JSON
{
  "hex": "#140c26",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 38
  },
  "hsl": {
    "h": 258.462,
    "s": 52,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18169,
    "c": 0.05166,
    "h": 294.9
  },
  "luminance": 0.00552
}

Semantic roles & 50–950 ramp

primary
#140C26
secondary
#51612D
accent
#DB4CAF
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020105
muted
#787779

Preview Lab

Preview with #140C26

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

Preview Lab → · Contrast checker → · Palette generator →

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