#140C4D#140C4D

#140C4D is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.3% C 0.111 H 277.9°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#140C4D
RGBrgb(20, 12, 77)
HSLhsl(247, 73%, 17%)
HSVhsv(247, 84%, 30%)
CMYKcmyk(74%, 84.4%, 0%, 69.8%)
CIE-LABlab(8.54, 26.46, -38.22)
CIE-LCHlch(8.54, 46.49, 304.70°)
OKLaboklab(22.32% 0.0153 -0.1104)
OKLCHoklch(22.32% 0.111 277.9)
XYZxyz(1.7591, 0.9473, 7.1099)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C4D #454D0C
analogous
#0C244D #140C4D #350C4D
triadic
#140C4D #4D140C #0C4D14
tetradic
#140C4D #4D0C24 #454D0C #0C4D35
square
#140C4D #4D0C24 #454D0C #0C4D35
split-complementary
#140C4D #4D350C #244D0C
monochromatic
#07041A #07041A #140C4D #221482 #301DB7

Accessibility & contrast

On white

17.66
#140C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C4D
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C4D#FFFFFF#000000##FFFFFF
##140C4D1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140c4d;
/* rgb */ color: rgb(20, 12, 77);
/* oklch */ color: oklch(22.3% 0.111 277.9);
Tailwind
colors: {
  custom: {
    50: '#5c4c80',
    500: '#140c4d',
    950: '#000000',
  },
}
SCSS
$custom: #140c4d;
$custom-light: #5c4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#140c4d",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 247.385,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22322,
    "c": 0.11147,
    "h": 277.9
  },
  "luminance": 0.00947
}

Semantic roles & 50–950 ramp

primary
#140C4D
secondary
#7D892C
accent
#F038D9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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