#140D4A#140D4A

#140D4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.1% C 0.106 H 278.4°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#140D4A
RGBrgb(20, 13, 74)
HSLhsl(247, 70%, 17%)
HSVhsv(247, 82%, 29%)
CMYKcmyk(73%, 82.4%, 0%, 71%)
CIE-LABlab(8.40, 24.76, -36.37)
CIE-LCHlch(8.40, 44.00, 304.24°)
OKLaboklab(22.11% 0.0155 -0.105)
OKLCHoklch(22.11% 0.106 278.4)
XYZxyz(1.6680, 0.9308, 6.5690)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D4A #434A0D
analogous
#0D254A #140D4A #330D4A
triadic
#140D4A #4A140D #0D4A14
tetradic
#140D4A #4A0D25 #434A0D #0D4A33
square
#140D4A #4A0D25 #434A0D #0D4A33
split-complementary
#140D4A #4A330D #254A0D
monochromatic
#07051A #07051A #140D4A #22167E #301FB2

Accessibility & contrast

On white

17.70
#140D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140D4A
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D4A#FFFFFF#000000##FFFFFF
##140D4A1.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001649
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #140d4a;
/* rgb */ color: rgb(20, 13, 74);
/* oklch */ color: oklch(22.1% 0.106 278.4);
Tailwind
colors: {
  custom: {
    50: '#5b4d7d',
    500: '#140d4a',
    950: '#000000',
  },
}
SCSS
$custom: #140d4a;
$custom-light: #5b4d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#140d4a",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 246.885,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22114,
    "c": 0.10616,
    "h": 278.4
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#140D4A
secondary
#7B852E
accent
#ED3BD8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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