#140D3F#140D3F

#140D3F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.090 H 281.6°. Best body text is #FFFFFF at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#140D3F
RGBrgb(20, 13, 63)
HSLhsl(248, 66%, 15%)
HSVhsv(248, 79%, 25%)
CMYKcmyk(68.3%, 79.4%, 0%, 75.3%)
CIE-LABlab(7.18, 20.53, -30.60)
CIE-LCHlch(7.18, 36.85, 303.86°)
OKLaboklab(20.85% 0.0181 -0.0883)
OKLCHoklch(20.85% 0.09 281.6)
XYZxyz(1.3293, 0.7954, 4.7851)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D3F #383F0D
analogous
#0D1F3F #140D3F #2D0D3F
triadic
#140D3F #3F140D #0D3F14
tetradic
#140D3F #3F0D1F #383F0D #0D3F2D
square
#140D3F #3F0D1F #383F0D #0D3F2D
split-complementary
#140D3F #3F2D0D #1F3F0D
monochromatic
#080519 #080519 #140D3F #241772 #3422A4

Accessibility & contrast

On white

18.12
#140D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140D3F
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D3F#FFFFFF#000000##FFFFFF
##140D3F1.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #140d3f;
/* rgb */ color: rgb(20, 13, 63);
/* oklch */ color: oklch(20.9% 0.090 281.6);
Tailwind
colors: {
  custom: {
    50: '#584c75',
    500: '#140d3f',
    950: '#000000',
  },
}
SCSS
$custom: #140d3f;
$custom-light: #584c75;
$custom-dark: #000000;
JSON
{
  "hex": "#140d3f",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 248.4,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20851,
    "c": 0.09016,
    "h": 281.6
  },
  "luminance": 0.00795
}

Semantic roles & 50–950 ramp

primary
#140D3F
secondary
#707B2D
accent
#E93FD1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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