#140B40#140B40

#140B40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.094 H 282.0°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#140B40
RGBrgb(20, 11, 64)
HSLhsl(250, 71%, 15%)
HSVhsv(250, 83%, 25%)
CMYKcmyk(68.8%, 82.8%, 0%, 74.9%)
CIE-LABlab(6.85, 22.10, -31.87)
CIE-LCHlch(6.85, 38.79, 304.74°)
OKLaboklab(20.62% 0.0197 -0.0922)
OKLCHoklch(20.62% 0.094 282)
XYZxyz(1.3333, 0.7581, 4.9256)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140B40 #37400B
analogous
#0B1C40 #140B40 #2F0B40
triadic
#140B40 #40140B #0B4014
tetradic
#140B40 #400B1C #37400B #0B402F
square
#140B40 #400B1C #37400B #0B402F
split-complementary
#140B40 #402F0B #1C400B
monochromatic
#08041A #08041A #140B40 #241474 #351DA8

Accessibility & contrast

On white

18.24
#140B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140B40
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140B40#FFFFFF#000000##FFFFFF
##140B401.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #140b40;
/* rgb */ color: rgb(20, 11, 64);
/* oklch */ color: oklch(20.6% 0.094 282.0);
Tailwind
colors: {
  custom: {
    50: '#584b75',
    500: '#140b40',
    950: '#000000',
  },
}
SCSS
$custom: #140b40;
$custom-light: #584b75;
$custom-dark: #000000;
JSON
{
  "hex": "#140b40",
  "rgb": {
    "r": 20,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 250.189,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20623,
    "c": 0.09424,
    "h": 282
  },
  "luminance": 0.00758
}

Semantic roles & 50–950 ramp

primary
#140B40
secondary
#6F7D2A
accent
#ED3ACF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140B40

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

Preview Lab → · Contrast checker → · Palette generator →

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