#140B4C#140B4C

#140B4C is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.1% C 0.111 H 278.4°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#140B4C
RGBrgb(20, 11, 76)
HSLhsl(248, 75%, 17%)
HSVhsv(248, 86%, 30%)
CMYKcmyk(73.7%, 85.5%, 0%, 70.2%)
CIE-LABlab(8.22, 26.70, -38.07)
CIE-LCHlch(8.22, 46.50, 305.04°)
OKLaboklab(22.06% 0.0162 -0.11)
OKLCHoklch(22.06% 0.111 278.4)
XYZxyz(1.7122, 0.9097, 6.9214)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140B4C #434C0B
analogous
#0B224C #140B4C #350B4C
triadic
#140B4C #4C140B #0B4C14
tetradic
#140B4C #4C0B22 #434C0B #0B4C35
square
#140B4C #4C0B22 #434C0B #0B4C35
split-complementary
#140B4C #4C350B #224C0B
monochromatic
#07041B #07041B #140B4C #221381 #301AB7

Accessibility & contrast

On white

17.77
#140B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140B4C
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140B4C#FFFFFF#000000##FFFFFF
##140B4C1.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4E
Deuteranopia (green-blind)
#00154B
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #140b4c;
/* rgb */ color: rgb(20, 11, 76);
/* oklch */ color: oklch(22.1% 0.111 278.4);
Tailwind
colors: {
  custom: {
    50: '#5c4b7f',
    500: '#140b4c',
    950: '#000000',
  },
}
SCSS
$custom: #140b4c;
$custom-light: #5c4b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#140b4c",
  "rgb": {
    "r": 20,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 248.308,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22055,
    "c": 0.11115,
    "h": 278.4
  },
  "luminance": 0.0091
}

Semantic roles & 50–950 ramp

primary
#140B4C
secondary
#7B882B
accent
#F136D7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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