#140C38#140C38

#140C38 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.081 H 284.6°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#140C38
RGBrgb(20, 12, 56)
HSLhsl(251, 65%, 13%)
HSVhsv(251, 79%, 22%)
CMYKcmyk(64.3%, 78.6%, 0%, 78%)
CIE-LABlab(6.30, 18.13, -27.00)
CIE-LCHlch(6.30, 32.53, 303.88°)
OKLaboklab(19.91% 0.0205 -0.0783)
OKLCHoklch(19.91% 0.081 284.6)
XYZxyz(1.1336, 0.6971, 3.8154)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C38 #30380C
analogous
#0C1A38 #140C38 #2A0C38
triadic
#140C38 #38140C #0C3814
tetradic
#140C38 #380C1A #30380C #0C382A
square
#140C38 #380C1A #30380C #0C382A
split-complementary
#140C38 #382A0C #1A380C
monochromatic
#090519 #090519 #140C38 #26176A #38229D

Accessibility & contrast

On white

18.43
#140C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C38
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C38#FFFFFF#000000##FFFFFF
##140C381.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#051720
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140c38;
/* rgb */ color: rgb(20, 12, 56);
/* oklch */ color: oklch(19.9% 0.081 284.6);
Tailwind
colors: {
  custom: {
    50: '#564b6f',
    500: '#140c38',
    950: '#000000',
  },
}
SCSS
$custom: #140c38;
$custom-light: #564b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#140c38",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 250.909,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.19908,
    "c": 0.08094,
    "h": 284.6
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#140C38
secondary
#67742C
accent
#E840C9
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #140C38

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

Preview Lab → · Contrast checker → · Palette generator →

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