#140C3E#140C3E

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

Color values

HEX#140C3E
RGBrgb(20, 12, 62)
HSLhsl(250, 68%, 15%)
HSVhsv(250, 81%, 24%)
CMYKcmyk(67.7%, 80.6%, 0%, 75.7%)
CIE-LABlab(6.86, 20.71, -30.42)
CIE-LCHlch(6.86, 36.80, 304.25°)
OKLaboklab(20.56% 0.0192 -0.0879)
OKLCHoklch(20.56% 0.09 282.3)
XYZxyz(1.2892, 0.7594, 4.6351)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C3E #363E0C
analogous
#0C1D3E #140C3E #2D0C3E
triadic
#140C3E #3E140C #0C3E14
tetradic
#140C3E #3E0C1D #363E0C #0C3E2D
square
#140C3E #3E0C1D #363E0C #0C3E2D
split-complementary
#140C3E #3E2D0C #1D3E0C
monochromatic
#08051A #08051A #140C3E #251671 #3520A5

Accessibility & contrast

On white

18.23
#140C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C3E
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C3E#FFFFFF#000000##FFFFFF
##140C3E1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173F
Deuteranopia (green-blind)
#00133D
Tritanopia (blue-blind)
#001923
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #140c3e;
/* rgb */ color: rgb(20, 12, 62);
/* oklch */ color: oklch(20.6% 0.090 282.3);
Tailwind
colors: {
  custom: {
    50: '#584b74',
    500: '#140c3e',
    950: '#000000',
  },
}
SCSS
$custom: #140c3e;
$custom-light: #584b74;
$custom-dark: #000000;
JSON
{
  "hex": "#140c3e",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 249.6,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20564,
    "c": 0.09001,
    "h": 282.3
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#140C3E
secondary
#6E7A2C
accent
#EA3DCF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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