#140C40#140C40

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

Color values

HEX#140C40
RGBrgb(20, 12, 64)
HSLhsl(249, 68%, 15%)
HSVhsv(249, 81%, 25%)
CMYKcmyk(68.8%, 81.2%, 0%, 74.9%)
CIE-LABlab(7.06, 21.54, -31.52)
CIE-LCHlch(7.06, 38.18, 304.35°)
OKLaboklab(20.79% 0.0188 -0.0911)
OKLCHoklch(20.79% 0.093 281.6)
XYZxyz(1.3451, 0.7817, 4.9295)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C40 #38400C
analogous
#0C1E40 #140C40 #2E0C40
triadic
#140C40 #40140C #0C4014
tetradic
#140C40 #400C1E #38400C #0C402E
square
#140C40 #400C1E #38400C #0C402E
split-complementary
#140C40 #402E0C #1E400C
monochromatic
#08051A #08051A #140C40 #241674 #341FA7

Accessibility & contrast

On white

18.16
#140C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C40
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C40#FFFFFF#000000##FFFFFF
##140C401.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140c40;
/* rgb */ color: rgb(20, 12, 64);
/* oklch */ color: oklch(20.8% 0.093 281.6);
Tailwind
colors: {
  custom: {
    50: '#584b75',
    500: '#140c40',
    950: '#000000',
  },
}
SCSS
$custom: #140c40;
$custom-light: #584b75;
$custom-dark: #000000;
JSON
{
  "hex": "#140c40",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 249.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20789,
    "c": 0.09296,
    "h": 281.6
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#140C40
secondary
#707C2C
accent
#EB3DD0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140C40

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

Preview Lab → · Contrast checker → · Palette generator →

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