#140B4A#140B4A

#140B4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.108 H 278.9°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#140B4A
RGBrgb(20, 11, 74)
HSLhsl(249, 74%, 17%)
HSVhsv(249, 85%, 29%)
CMYKcmyk(73%, 85.1%, 0%, 71%)
CIE-LABlab(7.97, 25.98, -37.08)
CIE-LCHlch(7.97, 45.28, 305.02°)
OKLaboklab(21.81% 0.0168 -0.1071)
OKLCHoklch(21.81% 0.108 278.9)
XYZxyz(1.6438, 0.8823, 6.5609)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140B4A #414A0B
analogous
#0B224A #140B4A #340B4A
triadic
#140B4A #4A140B #0B4A14
tetradic
#140B4A #4A0B22 #414A0B #0B4A34
square
#140B4A #4A0B22 #414A0B #0B4A34
split-complementary
#140B4A #4A340B #224A0B
monochromatic
#07041B #07041B #140B4A #22137F #311BB5

Accessibility & contrast

On white

17.85
#140B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#140B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140B4A
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140B4A#FFFFFF#000000##FFFFFF
##140B4A1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001549
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140b4a;
/* rgb */ color: rgb(20, 11, 74);
/* oklch */ color: oklch(21.8% 0.108 278.9);
Tailwind
colors: {
  custom: {
    50: '#5b4b7d',
    500: '#140b4a',
    950: '#000000',
  },
}
SCSS
$custom: #140b4a;
$custom-light: #5b4b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#140b4a",
  "rgb": {
    "r": 20,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 248.571,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.21811,
    "c": 0.10839,
    "h": 278.9
  },
  "luminance": 0.00882
}

Semantic roles & 50–950 ramp

primary
#140B4A
secondary
#79862B
accent
#F137D6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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