#140C3A#140C3A

#140C3A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.084 H 283.8°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#140C3A
RGBrgb(20, 12, 58)
HSLhsl(250, 66%, 14%)
HSVhsv(250, 79%, 23%)
CMYKcmyk(65.5%, 79.3%, 0%, 77.3%)
CIE-LABlab(6.48, 19.00, -28.16)
CIE-LCHlch(6.48, 33.97, 304.01°)
OKLaboklab(20.12% 0.0201 -0.0816)
OKLCHoklch(20.12% 0.084 283.8)
XYZxyz(1.1834, 0.7171, 4.0782)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C3A #323A0C
analogous
#0C1B3A #140C3A #2B0C3A
triadic
#140C3A #3A140C #0C3A14
tetradic
#140C3A #3A0C1B #323A0C #0C3A2B
square
#140C3A #3A0C1B #323A0C #0C3A2B
split-complementary
#140C3A #3A2B0C #1B3A0C
monochromatic
#090519 #090519 #140C3A #25166D #37219F

Accessibility & contrast

On white

18.37
#140C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C3A
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C3A#FFFFFF#000000##FFFFFF
##140C3A1.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#031821
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140c3a;
/* rgb */ color: rgb(20, 12, 58);
/* oklch */ color: oklch(20.1% 0.084 283.8);
Tailwind
colors: {
  custom: {
    50: '#574b71',
    500: '#140c3a',
    950: '#000000',
  },
}
SCSS
$custom: #140c3a;
$custom-light: #574b71;
$custom-dark: #000000;
JSON
{
  "hex": "#140c3a",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 250.435,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20123,
    "c": 0.08401,
    "h": 283.8
  },
  "luminance": 0.00717
}

Semantic roles & 50–950 ramp

primary
#140C3A
secondary
#69762C
accent
#E93FCB
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #140C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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