#140E40#140E40

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

Color values

HEX#140E40
RGBrgb(20, 14, 64)
HSLhsl(247, 64%, 15%)
HSVhsv(247, 78%, 25%)
CMYKcmyk(68.8%, 78.1%, 0%, 74.9%)
CIE-LABlab(7.52, 20.31, -30.76)
CIE-LCHlch(7.52, 36.86, 303.43°)
OKLaboklab(21.14% 0.0169 -0.0887)
OKLCHoklch(21.14% 0.09 280.8)
XYZxyz(1.3707, 0.8329, 4.9380)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140E40 #3A400E
analogous
#0E2140 #140E40 #2D0E40
triadic
#140E40 #40140E #0E4014
tetradic
#140E40 #400E21 #3A400E #0E402D
square
#140E40 #400E21 #3A400E #0E402D
split-complementary
#140E40 #402D0E #21400E
monochromatic
#080519 #080519 #140E40 #241972 #3324A4

Accessibility & contrast

On white

18.00
#140E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#140E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140E40
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140E40#FFFFFF#000000##FFFFFF
##140E401.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140e40;
/* rgb */ color: rgb(20, 14, 64);
/* oklch */ color: oklch(21.1% 0.090 280.8);
Tailwind
colors: {
  custom: {
    50: '#584d75',
    500: '#140e40',
    950: '#000000',
  },
}
SCSS
$custom: #140e40;
$custom-light: #584d75;
$custom-dark: #000000;
JSON
{
  "hex": "#140e40",
  "rgb": {
    "r": 20,
    "g": 14,
    "b": 64
  },
  "hsl": {
    "h": 247.2,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21141,
    "c": 0.0903,
    "h": 280.8
  },
  "luminance": 0.00833
}

Semantic roles & 50–950 ramp

primary
#140E40
secondary
#727B2F
accent
#E741D3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140E40

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

Preview Lab → · Contrast checker → · Palette generator →

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