#140D3C#140D3C

#140D3C is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.086 H 282.6°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#140D3C
RGBrgb(20, 13, 60)
HSLhsl(249, 64%, 14%)
HSVhsv(249, 78%, 24%)
CMYKcmyk(66.7%, 78.3%, 0%, 76.5%)
CIE-LABlab(6.89, 19.29, -28.94)
CIE-LCHlch(6.89, 34.78, 303.69°)
OKLaboklab(20.52% 0.0187 -0.0836)
OKLCHoklch(20.52% 0.086 282.6)
XYZxyz(1.2478, 0.7627, 4.3556)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D3C #353C0D
analogous
#0D1E3C #140D3C #2C0D3C
triadic
#140D3C #3C140D #0D3C14
tetradic
#140D3C #3C0D1E #353C0D #0D3C2C
square
#140D3C #3C0D1E #353C0D #0D3C2C
split-complementary
#140D3C #3C2C0D #1E3C0D
monochromatic
#080519 #080519 #140D3C #25186E #3623A1

Accessibility & contrast

On white

18.22
#140D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140D3C
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D3C#FFFFFF#000000##FFFFFF
##140D3C1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173D
Deuteranopia (green-blind)
#00143B
Tritanopia (blue-blind)
#011923
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #140d3c;
/* rgb */ color: rgb(20, 13, 60);
/* oklch */ color: oklch(20.5% 0.086 282.6);
Tailwind
colors: {
  custom: {
    50: '#574c72',
    500: '#140d3c',
    950: '#000000',
  },
}
SCSS
$custom: #140d3c;
$custom-light: #574c72;
$custom-dark: #000000;
JSON
{
  "hex": "#140d3c",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 248.936,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20522,
    "c": 0.08563,
    "h": 282.6
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#140D3C
secondary
#6C782D
accent
#E740CF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030108
muted
#78777B

Preview Lab

Preview with #140D3C

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

Preview Lab → · Contrast checker → · Palette generator →

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