#140D4C#140D4C

#140D4C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.109 H 277.9°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#140D4C
RGBrgb(20, 13, 76)
HSLhsl(247, 71%, 17%)
HSVhsv(247, 83%, 30%)
CMYKcmyk(73.7%, 82.9%, 0%, 70.2%)
CIE-LABlab(8.64, 25.49, -37.37)
CIE-LCHlch(8.64, 45.24, 304.30°)
OKLaboklab(22.35% 0.0149 -0.1079)
OKLCHoklch(22.35% 0.109 277.9)
XYZxyz(1.7365, 0.9582, 6.9295)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D4C #454C0D
analogous
#0D254C #140D4C #340D4C
triadic
#140D4C #4C140D #0D4C14
tetradic
#140D4C #4C0D25 #454C0D #0D4C34
square
#140D4C #4C0D25 #454C0D #0D4C34
split-complementary
#140D4C #4C340D #254C0D
monochromatic
#07041A #07041A #140D4C #221680 #301FB5

Accessibility & contrast

On white

17.62
#140D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#140D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140D4C
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D4C#FFFFFF#000000##FFFFFF
##140D4C1.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4E
Deuteranopia (green-blind)
#00164B
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140d4c;
/* rgb */ color: rgb(20, 13, 76);
/* oklch */ color: oklch(22.4% 0.109 277.9);
Tailwind
colors: {
  custom: {
    50: '#5b4d7f',
    500: '#140d4c',
    950: '#000000',
  },
}
SCSS
$custom: #140d4c;
$custom-light: #5b4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#140d4c",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 246.667,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22352,
    "c": 0.10898,
    "h": 277.9
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#140D4C
secondary
#7D872E
accent
#EE3ADA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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