#140C4A#140C4A

#140C4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.0% C 0.107 H 278.7°. Best body text is #FFFFFF at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#140C4A
RGBrgb(20, 12, 74)
HSLhsl(248, 72%, 17%)
HSVhsv(248, 84%, 29%)
CMYKcmyk(73%, 83.8%, 0%, 71%)
CIE-LABlab(8.18, 25.38, -36.73)
CIE-LCHlch(8.18, 44.65, 304.64°)
OKLaboklab(21.96% 0.0162 -0.1061)
OKLCHoklch(21.96% 0.107 278.7)
XYZxyz(1.6556, 0.9059, 6.5649)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C4A #424A0C
analogous
#0C234A #140C4A #330C4A
triadic
#140C4A #4A140C #0C4A14
tetradic
#140C4A #4A0C23 #424A0C #0C4A33
square
#140C4A #4A0C23 #424A0C #0C4A33
split-complementary
#140C4A #4A330C #234A0C
monochromatic
#07041A #07041A #140C4A #22157F #301DB3

Accessibility & contrast

On white

17.78
#140C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#140C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C4A
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C4A#FFFFFF#000000##FFFFFF
##140C4A1.0017.781.1817.78
#FFFFFF17.781.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140c4a;
/* rgb */ color: rgb(20, 12, 74);
/* oklch */ color: oklch(22.0% 0.107 278.7);
Tailwind
colors: {
  custom: {
    50: '#5b4c7d',
    500: '#140c4a',
    950: '#000000',
  },
}
SCSS
$custom: #140c4a;
$custom-light: #5b4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#140c4a",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 247.742,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.21959,
    "c": 0.1073,
    "h": 278.7
  },
  "luminance": 0.00906
}

Semantic roles & 50–950 ramp

primary
#140C4A
secondary
#7A862C
accent
#EF39D7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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