#140D40#140D40

#140D40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.0% C 0.092 H 281.2°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#140D40
RGBrgb(20, 13, 64)
HSLhsl(248, 66%, 15%)
HSVhsv(248, 80%, 25%)
CMYKcmyk(68.8%, 79.7%, 0%, 74.9%)
CIE-LABlab(7.29, 20.94, -31.15)
CIE-LCHlch(7.29, 37.54, 303.91°)
OKLaboklab(20.96% 0.0179 -0.0899)
OKLCHoklch(20.96% 0.092 281.2)
XYZxyz(1.3575, 0.8066, 4.9337)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D40 #39400D
analogous
#0D2040 #140D40 #2D0D40
triadic
#140D40 #40140D #0D4014
tetradic
#140D40 #400D20 #39400D #0D402D
square
#140D40 #400D20 #39400D #0D402D
split-complementary
#140D40 #402D0D #20400D
monochromatic
#080519 #080519 #140D40 #241773 #3422A6

Accessibility & contrast

On white

18.08
#140D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#140D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140D40
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D40#FFFFFF#000000##FFFFFF
##140D401.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #140d40;
/* rgb */ color: rgb(20, 13, 64);
/* oklch */ color: oklch(21.0% 0.092 281.2);
Tailwind
colors: {
  custom: {
    50: '#584c75',
    500: '#140d40',
    950: '#000000',
  },
}
SCSS
$custom: #140d40;
$custom-light: #584c75;
$custom-dark: #000000;
JSON
{
  "hex": "#140d40",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 248.235,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20962,
    "c": 0.09166,
    "h": 281.2
  },
  "luminance": 0.00807
}

Semantic roles & 50–950 ramp

primary
#140D40
secondary
#717C2D
accent
#E93FD2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140D40

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

Preview Lab → · Contrast checker → · Palette generator →

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