#140C4C#140C4C

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

Color values

HEX#140C4C
RGBrgb(20, 12, 76)
HSLhsl(248, 73%, 17%)
HSVhsv(248, 84%, 30%)
CMYKcmyk(73.7%, 84.2%, 0%, 70.2%)
CIE-LABlab(8.42, 26.10, -37.73)
CIE-LCHlch(8.42, 45.87, 304.68°)
OKLaboklab(22.2% 0.0156 -0.109)
OKLCHoklch(22.2% 0.11 278.1)
XYZxyz(1.7240, 0.9333, 6.9254)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C4C #444C0C
analogous
#0C244C #140C4C #340C4C
triadic
#140C4C #4C140C #0C4C14
tetradic
#140C4C #4C0C24 #444C0C #0C4C34
square
#140C4C #4C0C24 #444C0C #0C4C34
split-complementary
#140C4C #4C340C #244C0C
monochromatic
#07041A #07041A #140C4C #221481 #301DB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##140C4C#FFFFFF#000000##FFFFFF
##140C4C1.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)
#001B4E
Deuteranopia (green-blind)
#00164B
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #140c4c;
/* rgb */ color: rgb(20, 12, 76);
/* oklch */ color: oklch(22.2% 0.110 278.1);
Tailwind
colors: {
  custom: {
    50: '#5b4c7f',
    500: '#140c4c',
    950: '#000000',
  },
}
SCSS
$custom: #140c4c;
$custom-light: #5b4c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#140c4c",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 247.5,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22201,
    "c": 0.11008,
    "h": 278.1
  },
  "luminance": 0.00933
}

Semantic roles & 50–950 ramp

primary
#140C4C
secondary
#7C882C
accent
#EF38D9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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