#140B39#140B39

#140B39 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.084 H 284.7°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#140B39
RGBrgb(20, 11, 57)
HSLhsl(252, 68%, 13%)
HSVhsv(252, 81%, 22%)
CMYKcmyk(64.9%, 80.7%, 0%, 77.6%)
CIE-LABlab(6.17, 19.10, -27.93)
CIE-LCHlch(6.17, 33.84, 304.36°)
OKLaboklab(19.84% 0.0214 -0.0811)
OKLCHoklch(19.84% 0.084 284.7)
XYZxyz(1.1465, 0.6834, 3.9416)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140B39 #30390B
analogous
#0B1939 #140B39 #2B0B39
triadic
#140B39 #39140B #0B3914
tetradic
#140B39 #390B19 #30390B #0B392B
square
#140B39 #390B19 #30390B #0B392B
split-complementary
#140B39 #392B0B #19390B
monochromatic
#09051A #09051A #140B39 #26156C #381FA0

Accessibility & contrast

On white

18.48
#140B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140B39
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140B39#FFFFFF#000000##FFFFFF
##140B391.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001238
Tritanopia (blue-blind)
#041720
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140b39;
/* rgb */ color: rgb(20, 11, 57);
/* oklch */ color: oklch(19.8% 0.084 284.7);
Tailwind
colors: {
  custom: {
    50: '#564b70',
    500: '#140b39',
    950: '#000000',
  },
}
SCSS
$custom: #140b39;
$custom-light: #564b70;
$custom-dark: #000000;
JSON
{
  "hex": "#140b39",
  "rgb": {
    "r": 20,
    "g": 11,
    "b": 57
  },
  "hsl": {
    "h": 251.739,
    "s": 67.647,
    "l": 13.333
  },
  "oklch": {
    "l": 0.19835,
    "c": 0.08391,
    "h": 284.7
  },
  "luminance": 0.00683
}

Semantic roles & 50–950 ramp

primary
#140B39
secondary
#67762A
accent
#EB3DC9
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #140B39

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

Preview Lab → · Contrast checker → · Palette generator →

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