#140A3E#140A3E

#140A3E is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.2% C 0.093 H 283.2°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#140A3E
RGBrgb(20, 10, 62)
HSLhsl(252, 72%, 14%)
HSVhsv(252, 84%, 24%)
CMYKcmyk(67.7%, 83.9%, 0%, 75.7%)
CIE-LABlab(6.45, 21.79, -31.10)
CIE-LCHlch(6.45, 37.97, 305.02°)
OKLaboklab(20.23% 0.0211 -0.0902)
OKLCHoklch(20.23% 0.093 283.2)
XYZxyz(1.2663, 0.7135, 4.6275)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140A3E #343E0A
analogous
#0A1A3E #140A3E #2E0A3E
triadic
#140A3E #3E140A #0A3E14
tetradic
#140A3E #3E0A1A #343E0A #0A3E2E
square
#140A3E #3E0A1A #343E0A #0A3E2E
split-complementary
#140A3E #3E2E0A #1A3E0A
monochromatic
#08041A #08041A #140A3E #251373 #361BA7

Accessibility & contrast

On white

18.38
#140A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140A3E
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140A3E#FFFFFF#000000##FFFFFF
##140A3E1.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001640
Deuteranopia (green-blind)
#00133D
Tritanopia (blue-blind)
#001823
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140a3e;
/* rgb */ color: rgb(20, 10, 62);
/* oklch */ color: oklch(20.2% 0.093 283.2);
Tailwind
colors: {
  custom: {
    50: '#584a74',
    500: '#140a3e',
    950: '#000000',
  },
}
SCSS
$custom: #140a3e;
$custom-light: #584a74;
$custom-dark: #000000;
JSON
{
  "hex": "#140a3e",
  "rgb": {
    "r": 20,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 251.538,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20231,
    "c": 0.0926,
    "h": 283.2
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#140A3E
secondary
#6B7B28
accent
#EF39CC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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