#140B4D#140B4D

#140B4D is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.2% C 0.113 H 278.1°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#140B4D
RGBrgb(20, 11, 77)
HSLhsl(248, 75%, 17%)
HSVhsv(248, 86%, 30%)
CMYKcmyk(74%, 85.7%, 0%, 69.8%)
CIE-LABlab(8.34, 27.05, -38.56)
CIE-LCHlch(8.34, 47.10, 305.05°)
OKLaboklab(22.18% 0.0159 -0.1114)
OKLCHoklch(22.18% 0.113 278.1)
XYZxyz(1.7473, 0.9237, 7.1060)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140B4D #444D0B
analogous
#0B234D #140B4D #350B4D
triadic
#140B4D #4D140B #0B4D14
tetradic
#140B4D #4D0B23 #444D0B #0B4D35
square
#140B4D #4D0B23 #444D0B #0B4D35
split-complementary
#140B4D #4D350B #234D0B
monochromatic
#07041B #07041B #140B4D #221383 #301AB8

Accessibility & contrast

On white

17.72
#140B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140B4D
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140B4D#FFFFFF#000000##FFFFFF
##140B4D1.0017.721.1817.72
#FFFFFF17.721.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00154C
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #140b4d;
/* rgb */ color: rgb(20, 11, 77);
/* oklch */ color: oklch(22.2% 0.113 278.1);
Tailwind
colors: {
  custom: {
    50: '#5c4c80',
    500: '#140b4d',
    950: '#000000',
  },
}
SCSS
$custom: #140b4d;
$custom-light: #5c4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#140b4d",
  "rgb": {
    "r": 20,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 248.182,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22178,
    "c": 0.11252,
    "h": 278.1
  },
  "luminance": 0.00924
}

Semantic roles & 50–950 ramp

primary
#140B4D
secondary
#7C892B
accent
#F236D8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #140B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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