#140F40#140F40

#140F40 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.089 H 280.3°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#140F40
RGBrgb(20, 15, 64)
HSLhsl(246, 62%, 15%)
HSVhsv(246, 77%, 25%)
CMYKcmyk(68.8%, 76.6%, 0%, 74.9%)
CIE-LABlab(7.77, 19.64, -30.36)
CIE-LCHlch(7.77, 36.16, 302.90°)
OKLaboklab(21.33% 0.0159 -0.0875)
OKLCHoklch(21.33% 0.089 280.3)
XYZxyz(1.3844, 0.8604, 4.9426)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F40 #3B400F
analogous
#0F2240 #140F40 #2C0F40
triadic
#140F40 #40140F #0F4014
tetradic
#140F40 #400F22 #3B400F #0F402C
square
#140F40 #400F22 #3B400F #0F402C
split-complementary
#140F40 #402C0F #22400F
monochromatic
#080619 #080619 #140F40 #231B72 #3326A3

Accessibility & contrast

On white

17.92
#140F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F40
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F40#FFFFFF#000000##FFFFFF
##140F401.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140f40;
/* rgb */ color: rgb(20, 15, 64);
/* oklch */ color: oklch(21.3% 0.089 280.3);
Tailwind
colors: {
  custom: {
    50: '#584d75',
    500: '#140f40',
    950: '#000000',
  },
}
SCSS
$custom: #140f40;
$custom-light: #584d75;
$custom-dark: #000000;
JSON
{
  "hex": "#140f40",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 246.122,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.21325,
    "c": 0.08891,
    "h": 280.3
  },
  "luminance": 0.00861
}

Semantic roles & 50–950 ramp

primary
#140F40
secondary
#737A30
accent
#E543D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140F40

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

Preview Lab → · Contrast checker → · Palette generator →

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