#140D4E#140D4E

#140D4E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.112 H 277.4°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#140D4E
RGBrgb(20, 13, 78)
HSLhsl(246, 71%, 18%)
HSVhsv(246, 83%, 31%)
CMYKcmyk(74.4%, 83.3%, 0%, 69.4%)
CIE-LABlab(8.88, 26.21, -38.36)
CIE-LCHlch(8.88, 46.46, 304.35°)
OKLaboklab(22.59% 0.0144 -0.1108)
OKLCHoklch(22.59% 0.112 277.4)
XYZxyz(1.8071, 0.9865, 7.3014)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D4E #474E0D
analogous
#0D264E #140D4E #350D4E
triadic
#140D4E #4E140D #0D4E14
tetradic
#140D4E #4E0D26 #474E0D #0D4E35
square
#140D4E #4E0D26 #474E0D #0D4E35
split-complementary
#140D4E #4E350D #264E0D
monochromatic
#07041A #07041A #140D4E #211682 #2F1EB7

Accessibility & contrast

On white

17.54
#140D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#140D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140D4E
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D4E#FFFFFF#000000##FFFFFF
##140D4E1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#00164D
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140d4e;
/* rgb */ color: rgb(20, 13, 78);
/* oklch */ color: oklch(22.6% 0.112 277.4);
Tailwind
colors: {
  custom: {
    50: '#5c4d80',
    500: '#140d4e',
    950: '#000000',
  },
}
SCSS
$custom: #140d4e;
$custom-light: #5c4d80;
$custom-dark: #000000;
JSON
{
  "hex": "#140d4e",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 246.462,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22593,
    "c": 0.11176,
    "h": 277.4
  },
  "luminance": 0.00987
}

Semantic roles & 50–950 ramp

primary
#140D4E
secondary
#7F892E
accent
#EE3ADB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #140D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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