#140C36#140C36

#140C36 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.7% C 0.078 H 285.5°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#140C36
RGBrgb(20, 12, 54)
HSLhsl(251, 64%, 13%)
HSVhsv(251, 78%, 21%)
CMYKcmyk(63%, 77.8%, 0%, 78.8%)
CIE-LABlab(6.12, 17.24, -25.83)
CIE-LCHlch(6.12, 31.05, 303.73°)
OKLaboklab(19.7% 0.0208 -0.075)
OKLCHoklch(19.7% 0.078 285.5)
XYZxyz(1.0856, 0.6779, 3.5630)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C36 #2E360C
analogous
#0C1936 #140C36 #290C36
triadic
#140C36 #36140C #0C3614
tetradic
#140C36 #360C19 #2E360C #0C3629
square
#140C36 #360C19 #2E360C #0C3629
split-complementary
#140C36 #36290C #19360C
monochromatic
#090619 #090619 #140C36 #271768 #39229A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##140C36#FFFFFF#000000##FFFFFF
##140C361.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)
#001537
Deuteranopia (green-blind)
#001235
Tritanopia (blue-blind)
#06171F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140c36;
/* rgb */ color: rgb(20, 12, 54);
/* oklch */ color: oklch(19.7% 0.078 285.5);
Tailwind
colors: {
  custom: {
    50: '#554b6d',
    500: '#140c36',
    950: '#000000',
  },
}
SCSS
$custom: #140c36;
$custom-light: #554b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#140c36",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 251.429,
    "s": 63.636,
    "l": 12.941
  },
  "oklch": {
    "l": 0.19696,
    "c": 0.07785,
    "h": 285.5
  },
  "luminance": 0.00678
}

Semantic roles & 50–950 ramp

primary
#140C36
secondary
#65722C
accent
#E741C7
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #140C36

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

Preview Lab → · Contrast checker → · Palette generator →

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