#140C28#140C28

#140C28 is a very dark, muted violet. Relative luminance 0.006; OKLCH L 18.3% C 0.055 H 293.4°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#140C28
RGBrgb(20, 12, 40)
HSLhsl(257, 54%, 10%)
HSVhsv(257, 70%, 16%)
CMYKcmyk(50%, 70%, 0%, 84.3%)
CIE-LABlab(5.10, 10.90, -17.03)
CIE-LCHlch(5.10, 20.22, 302.62°)
OKLaboklab(18.34% 0.0219 -0.0505)
OKLCHoklch(18.34% 0.055 293.4)
XYZxyz(0.8029, 0.5648, 2.0738)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C28 #20280C
analogous
#0C1228 #140C28 #220C28
triadic
#140C28 #28140C #0C2814
tetradic
#140C28 #280C12 #20280C #0C2822
square
#140C28 #280C12 #20280C #0C2822
split-complementary
#140C28 #28220C #12280C
monochromatic
#0C0718 #0C0718 #140C28 #2C1A57 #432886

Accessibility & contrast

On white

18.87
#140C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C28
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C28#FFFFFF#000000##FFFFFF
##140C281.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021129
Deuteranopia (green-blind)
#031127
Tritanopia (blue-blind)
#0F1218
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #140c28;
/* rgb */ color: rgb(20, 12, 40);
/* oklch */ color: oklch(18.3% 0.055 293.4);
Tailwind
colors: {
  custom: {
    50: '#524c62',
    500: '#140c28',
    950: '#000000',
  },
}
SCSS
$custom: #140c28;
$custom-light: #524c62;
$custom-dark: #000000;
JSON
{
  "hex": "#140c28",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 257.143,
    "s": 53.846,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18342,
    "c": 0.05507,
    "h": 293.4
  },
  "luminance": 0.00565
}

Semantic roles & 50–950 ramp

primary
#140C28
secondary
#54632D
accent
#DD4BB3
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #140C28

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

Preview Lab → · Contrast checker → · Palette generator →

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