#140D42#140D42

#140D42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.2% C 0.095 H 280.6°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#140D42
RGBrgb(20, 13, 66)
HSLhsl(248, 67%, 15%)
HSVhsv(248, 80%, 26%)
CMYKcmyk(69.7%, 80.3%, 0%, 74.1%)
CIE-LABlab(7.50, 21.74, -32.23)
CIE-LCHlch(7.50, 38.88, 304.00°)
OKLaboklab(21.19% 0.0174 -0.093)
OKLCHoklch(21.19% 0.095 280.6)
XYZxyz(1.4155, 0.8298, 5.2388)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D42 #3B420D
analogous
#0D2042 #140D42 #2E0D42
triadic
#140D42 #42140D #0D4214
tetradic
#140D42 #420D20 #3B420D #0D422E
square
#140D42 #420D20 #3B420D #0D422E
split-complementary
#140D42 #422E0D #20420D
monochromatic
#08051A #08051A #140D42 #231775 #3321A8

Accessibility & contrast

On white

18.01
#140D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140D42
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D42#FFFFFF#000000##FFFFFF
##140D421.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140d42;
/* rgb */ color: rgb(20, 13, 66);
/* oklch */ color: oklch(21.2% 0.095 280.6);
Tailwind
colors: {
  custom: {
    50: '#594c77',
    500: '#140d42',
    950: '#000000',
  },
}
SCSS
$custom: #140d42;
$custom-light: #594c77;
$custom-dark: #000000;
JSON
{
  "hex": "#140d42",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 247.925,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21187,
    "c": 0.09462,
    "h": 280.6
  },
  "luminance": 0.0083
}

Semantic roles & 50–950 ramp

primary
#140D42
secondary
#737E2D
accent
#EA3ED3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140D42

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

Preview Lab → · Contrast checker → · Palette generator →

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