#140A40#140A40

#140A40 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.095 H 282.4°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#140A40
RGBrgb(20, 10, 64)
HSLhsl(251, 73%, 15%)
HSVhsv(251, 84%, 25%)
CMYKcmyk(68.8%, 84.4%, 0%, 74.9%)
CIE-LABlab(6.65, 22.63, -32.20)
CIE-LCHlch(6.65, 39.36, 305.11°)
OKLaboklab(20.46% 0.0205 -0.0932)
OKLCHoklch(20.46% 0.095 282.4)
XYZxyz(1.3222, 0.7359, 4.9219)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140A40 #36400A
analogous
#0A1B40 #140A40 #2F0A40
triadic
#140A40 #40140A #0A4014
tetradic
#140A40 #400A1B #36400A #0A402F
square
#140A40 #400A1B #36400A #0A402F
split-complementary
#140A40 #402F0A #1B400A
monochromatic
#08041A #08041A #140A40 #251275 #351BAA

Accessibility & contrast

On white

18.31
#140A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#140A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140A40
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140A40#FFFFFF#000000##FFFFFF
##140A401.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #140a40;
/* rgb */ color: rgb(20, 10, 64);
/* oklch */ color: oklch(20.5% 0.095 282.4);
Tailwind
colors: {
  custom: {
    50: '#584a75',
    500: '#140a40',
    950: '#000000',
  },
}
SCSS
$custom: #140a40;
$custom-light: #584a75;
$custom-dark: #000000;
JSON
{
  "hex": "#140a40",
  "rgb": {
    "r": 20,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 251.111,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20464,
    "c": 0.09548,
    "h": 282.4
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#140A40
secondary
#6E7D29
accent
#F038CE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140A40

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

Preview Lab → · Contrast checker → · Palette generator →

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