#140F3C#140F3C

#140F3C is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.083 H 281.5°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#140F3C
RGBrgb(20, 15, 60)
HSLhsl(247, 60%, 15%)
HSVhsv(247, 75%, 24%)
CMYKcmyk(66.7%, 75%, 0%, 76.5%)
CIE-LABlab(7.38, 18.04, -28.14)
CIE-LCHlch(7.38, 33.43, 302.66°)
OKLaboklab(20.9% 0.0165 -0.081)
OKLCHoklch(20.9% 0.083 281.5)
XYZxyz(1.2747, 0.8165, 4.3645)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F3C #373C0F
analogous
#0F213C #140F3C #2B0F3C
triadic
#140F3C #3C140F #0F3C14
tetradic
#140F3C #3C0F21 #373C0F #0F3C2B
square
#140F3C #3C0F21 #373C0F #0F3C2B
split-complementary
#140F3C #3C2B0F #213C0F
monochromatic
#080618 #080618 #140F3C #241B6D #35279E

Accessibility & contrast

On white

18.05
#140F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F3C
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F3C#FFFFFF#000000##FFFFFF
##140F3C1.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183D
Deuteranopia (green-blind)
#00153B
Tritanopia (blue-blind)
#011A23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #140f3c;
/* rgb */ color: rgb(20, 15, 60);
/* oklch */ color: oklch(20.9% 0.083 281.5);
Tailwind
colors: {
  custom: {
    50: '#574d72',
    500: '#140f3c',
    950: '#000000',
  },
}
SCSS
$custom: #140f3c;
$custom-light: #574d72;
$custom-dark: #000000;
JSON
{
  "hex": "#140f3c",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 60
  },
  "hsl": {
    "h": 246.667,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.209,
    "c": 0.08272,
    "h": 281.5
  },
  "luminance": 0.00817
}

Semantic roles & 50–950 ramp

primary
#140F3C
secondary
#6F7630
accent
#E345D2
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030108
muted
#78777B

Preview Lab

Preview with #140F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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