#140C42#140C42

#140C42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.0% C 0.096 H 281.0°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#140C42
RGBrgb(20, 12, 66)
HSLhsl(249, 69%, 15%)
HSVhsv(249, 82%, 26%)
CMYKcmyk(69.7%, 81.8%, 0%, 74.1%)
CIE-LABlab(7.27, 22.35, -32.60)
CIE-LCHlch(7.27, 39.53, 304.43°)
OKLaboklab(21.02% 0.0183 -0.0941)
OKLCHoklch(21.02% 0.096 281)
XYZxyz(1.4030, 0.8049, 5.2346)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C42 #3A420C
analogous
#0C1F42 #140C42 #2F0C42
triadic
#140C42 #42140C #0C4214
tetradic
#140C42 #420C1F #3A420C #0C422F
square
#140C42 #420C1F #3A420C #0C422F
split-complementary
#140C42 #422F0C #1F420C
monochromatic
#08051A #08051A #140C42 #241576 #331FAA

Accessibility & contrast

On white

18.09
#140C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#140C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C42
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C42#FFFFFF#000000##FFFFFF
##140C421.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#001B26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #140c42;
/* rgb */ color: rgb(20, 12, 66);
/* oklch */ color: oklch(21.0% 0.096 281.0);
Tailwind
colors: {
  custom: {
    50: '#594b77',
    500: '#140c42',
    950: '#000000',
  },
}
SCSS
$custom: #140c42;
$custom-light: #594b77;
$custom-dark: #000000;
JSON
{
  "hex": "#140c42",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 248.889,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21018,
    "c": 0.09589,
    "h": 281
  },
  "luminance": 0.00805
}

Semantic roles & 50–950 ramp

primary
#140C42
secondary
#727E2C
accent
#EC3CD2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140C42

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

Preview Lab → · Contrast checker → · Palette generator →

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