#140B31#140B31

#140B31 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.072 H 288.6°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#140B31
RGBrgb(20, 11, 49)
HSLhsl(254, 63%, 12%)
HSVhsv(254, 78%, 19%)
CMYKcmyk(59.2%, 77.6%, 0%, 80.8%)
CIE-LABlab(5.51, 15.46, -23.14)
CIE-LCHlch(5.51, 27.83, 303.76°)
OKLaboklab(18.99% 0.0228 -0.0678)
OKLCHoklch(18.99% 0.072 288.6)
XYZxyz(0.9624, 0.6098, 2.9721)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140B31 #28310B
analogous
#0B1531 #140B31 #270B31
triadic
#140B31 #31140B #0B3114
tetradic
#140B31 #310B15 #28310B #0B3127
square
#140B31 #310B15 #28310B #0B3127
split-complementary
#140B31 #31270B #15310B
monochromatic
#0A0619 #0A0619 #140B31 #281663 #3D2195

Accessibility & contrast

On white

18.72
#140B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140B31
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140B31#FFFFFF#000000##FFFFFF
##140B311.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140b31;
/* rgb */ color: rgb(20, 11, 49);
/* oklch */ color: oklch(19.0% 0.072 288.6);
Tailwind
colors: {
  custom: {
    50: '#544b69',
    500: '#140b31',
    950: '#000000',
  },
}
SCSS
$custom: #140b31;
$custom-light: #544b69;
$custom-dark: #000000;
JSON
{
  "hex": "#140b31",
  "rgb": {
    "r": 20,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 254.211,
    "s": 63.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.1899,
    "c": 0.07157,
    "h": 288.6
  },
  "luminance": 0.0061
}

Semantic roles & 50–950 ramp

primary
#140B31
secondary
#5E6E2A
accent
#E641BF
background
#F5F4F6
surface
#E8E7EB
border
#C4C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #140B31

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

Preview Lab → · Contrast checker → · Palette generator →

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