#140A31#140A31

#140A31 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.073 H 289.2°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#140A31
RGBrgb(20, 10, 49)
HSLhsl(255, 66%, 12%)
HSVhsv(255, 80%, 19%)
CMYKcmyk(59.2%, 79.6%, 0%, 80.8%)
CIE-LABlab(5.31, 15.91, -23.46)
CIE-LCHlch(5.31, 28.34, 304.15°)
OKLaboklab(18.8% 0.024 -0.0691)
OKLCHoklch(18.8% 0.073 289.2)
XYZxyz(0.9512, 0.5875, 2.9684)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140A31 #27310A
analogous
#0A1431 #140A31 #280A31
triadic
#140A31 #31140A #0A3114
tetradic
#140A31 #310A14 #27310A #0A3128
square
#140A31 #310A14 #27310A #0A3128
split-complementary
#140A31 #31280A #14310A
monochromatic
#0A0519 #0A0519 #140A31 #291464 #3D1F97

Accessibility & contrast

On white

18.79
#140A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#140A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140A31
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140A31#FFFFFF#000000##FFFFFF
##140A311.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#0A141C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #140a31;
/* rgb */ color: rgb(20, 10, 49);
/* oklch */ color: oklch(18.8% 0.073 289.2);
Tailwind
colors: {
  custom: {
    50: '#544a69',
    500: '#140a31',
    950: '#000000',
  },
}
SCSS
$custom: #140a31;
$custom-light: #544a69;
$custom-dark: #000000;
JSON
{
  "hex": "#140a31",
  "rgb": {
    "r": 20,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 255.385,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18801,
    "c": 0.07317,
    "h": 289.2
  },
  "luminance": 0.00588
}

Semantic roles & 50–950 ramp

primary
#140A31
secondary
#5C6E29
accent
#E93FBD
background
#F5F4F6
surface
#E8E7EB
border
#C4C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #140A31

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

Preview Lab → · Contrast checker → · Palette generator →

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