#140C46#140C46

#140C46 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.102 H 279.8°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#140C46
RGBrgb(20, 12, 70)
HSLhsl(248, 71%, 16%)
HSVhsv(248, 83%, 27%)
CMYKcmyk(71.4%, 82.9%, 0%, 72.5%)
CIE-LABlab(7.71, 23.91, -34.70)
CIE-LCHlch(7.71, 42.14, 304.56°)
OKLaboklab(21.48% 0.0173 -0.1002)
OKLCHoklch(21.48% 0.102 279.8)
XYZxyz(1.5251, 0.8537, 5.8776)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C46 #3E460C
analogous
#0C2146 #140C46 #310C46
triadic
#140C46 #46140C #0C4614
tetradic
#140C46 #460C21 #3E460C #0C4631
square
#140C46 #460C21 #3E460C #0C4631
split-complementary
#140C46 #46310C #21460C
monochromatic
#07041A #07041A #140C46 #23157A #321EAE

Accessibility & contrast

On white

17.94
#140C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#140C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C46
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C46#FFFFFF#000000##FFFFFF
##140C461.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140c46;
/* rgb */ color: rgb(20, 12, 70);
/* oklch */ color: oklch(21.5% 0.102 279.8);
Tailwind
colors: {
  custom: {
    50: '#5a4c7a',
    500: '#140c46',
    950: '#000000',
  },
}
SCSS
$custom: #140c46;
$custom-light: #5a4c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#140c46",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 248.276,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21483,
    "c": 0.10165,
    "h": 279.8
  },
  "luminance": 0.00854
}

Semantic roles & 50–950 ramp

primary
#140C46
secondary
#76822C
accent
#ED3AD5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #140C46

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

Preview Lab → · Contrast checker → · Palette generator →

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