#140D38#140D38

#140D38 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.1% C 0.079 H 284.1°. Best body text is #FFFFFF at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#140D38
RGBrgb(20, 13, 56)
HSLhsl(250, 62%, 14%)
HSVhsv(250, 77%, 22%)
CMYKcmyk(64.3%, 76.8%, 0%, 78%)
CIE-LABlab(6.52, 17.58, -26.64)
CIE-LCHlch(6.52, 31.92, 303.42°)
OKLaboklab(20.1% 0.0193 -0.0771)
OKLCHoklch(20.1% 0.079 284.1)
XYZxyz(1.1460, 0.7220, 3.8196)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D38 #31380D
analogous
#0D1B38 #140D38 #290D38
triadic
#140D38 #38140D #0D3814
tetradic
#140D38 #380D1B #31380D #0D3829
square
#140D38 #380D1B #31380D #0D3829
split-complementary
#140D38 #38290D #1B380D
monochromatic
#090619 #090619 #140D38 #26196A #37249B

Accessibility & contrast

On white

18.35
#140D38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#140D38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140D38
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D38#FFFFFF#000000##FFFFFF
##140D381.0018.351.1418.35
#FFFFFF18.351.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#051821
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140d38;
/* rgb */ color: rgb(20, 13, 56);
/* oklch */ color: oklch(20.1% 0.079 284.1);
Tailwind
colors: {
  custom: {
    50: '#564c6f',
    500: '#140d38',
    950: '#000000',
  },
}
SCSS
$custom: #140d38;
$custom-light: #564c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#140d38",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 56
  },
  "hsl": {
    "h": 249.767,
    "s": 62.319,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20096,
    "c": 0.07945,
    "h": 284.1
  },
  "luminance": 0.00722
}

Semantic roles & 50–950 ramp

primary
#140D38
secondary
#68732D
accent
#E542CB
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #140D38

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

Preview Lab → · Contrast checker → · Palette generator →

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