#140C47#140C47

#140C47 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.103 H 279.5°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#140C47
RGBrgb(20, 12, 71)
HSLhsl(248, 71%, 16%)
HSVhsv(248, 83%, 28%)
CMYKcmyk(71.8%, 83.1%, 0%, 72.2%)
CIE-LABlab(7.83, 24.28, -35.22)
CIE-LCHlch(7.83, 42.78, 304.58°)
OKLaboklab(21.6% 0.017 -0.1017)
OKLCHoklch(21.6% 0.103 279.5)
XYZxyz(1.5569, 0.8665, 6.0452)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C47 #3F470C
analogous
#0C2247 #140C47 #320C47
triadic
#140C47 #47140C #0C4714
tetradic
#140C47 #470C22 #3F470C #0C4732
square
#140C47 #470C22 #3F470C #0C4732
split-complementary
#140C47 #47320C #22470C
monochromatic
#07041A #07041A #140C47 #23157B #311EB0

Accessibility & contrast

On white

17.90
#140C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C47
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C47#FFFFFF#000000##FFFFFF
##140C471.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001949
Deuteranopia (green-blind)
#001546
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140c47;
/* rgb */ color: rgb(20, 12, 71);
/* oklch */ color: oklch(21.6% 0.103 279.5);
Tailwind
colors: {
  custom: {
    50: '#5a4c7b',
    500: '#140c47',
    950: '#000000',
  },
}
SCSS
$custom: #140c47;
$custom-light: #5a4c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#140c47",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 248.136,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21602,
    "c": 0.10308,
    "h": 279.5
  },
  "luminance": 0.00867
}

Semantic roles & 50–950 ramp

primary
#140C47
secondary
#77832C
accent
#EE3AD5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #140C47

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

Preview Lab → · Contrast checker → · Palette generator →

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