#140C3F#140C3F

#140C3F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.091 H 282.0°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#140C3F
RGBrgb(20, 12, 63)
HSLhsl(249, 68%, 15%)
HSVhsv(249, 81%, 25%)
CMYKcmyk(68.3%, 81%, 0%, 75.3%)
CIE-LABlab(6.96, 21.13, -30.97)
CIE-LCHlch(6.96, 37.49, 304.30°)
OKLaboklab(20.68% 0.019 -0.0895)
OKLCHoklch(20.68% 0.092 282)
XYZxyz(1.3169, 0.7705, 4.7810)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C3F #373F0C
analogous
#0C1E3F #140C3F #2E0C3F
triadic
#140C3F #3F140C #0C3F14
tetradic
#140C3F #3F0C1E #373F0C #0C3F2E
square
#140C3F #3F0C1E #373F0C #0C3F2E
split-complementary
#140C3F #3F2E0C #1E3F0C
monochromatic
#08051A #08051A #140C3F #241672 #3520A6

Accessibility & contrast

On white

18.19
#140C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#140C3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C3F
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C3F#FFFFFF#000000##FFFFFF
##140C3F1.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140c3f;
/* rgb */ color: rgb(20, 12, 63);
/* oklch */ color: oklch(20.7% 0.091 282.0);
Tailwind
colors: {
  custom: {
    50: '#584b75',
    500: '#140c3f',
    950: '#000000',
  },
}
SCSS
$custom: #140c3f;
$custom-light: #584b75;
$custom-dark: #000000;
JSON
{
  "hex": "#140c3f",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 249.412,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20676,
    "c": 0.0915,
    "h": 282
  },
  "luminance": 0.00771
}

Semantic roles & 50–950 ramp

primary
#140C3F
secondary
#6F7B2C
accent
#EB3DD0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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