#140F3B#140F3B

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

Color values

HEX#140F3B
RGBrgb(20, 15, 59)
HSLhsl(247, 59%, 15%)
HSVhsv(247, 75%, 23%)
CMYKcmyk(66.1%, 74.6%, 0%, 76.9%)
CIE-LABlab(7.28, 17.62, -27.58)
CIE-LCHlch(7.28, 32.73, 302.58°)
OKLaboklab(20.8% 0.0167 -0.0794)
OKLCHoklch(20.8% 0.081 281.8)
XYZxyz(1.2485, 0.8061, 4.2266)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F3B #363B0F
analogous
#0F203B #140F3B #2A0F3B
triadic
#140F3B #3B140F #0F3B14
tetradic
#140F3B #3B0F20 #363B0F #0F3B2A
square
#140F3B #3B0F20 #363B0F #0F3B2A
split-complementary
#140F3B #3B2A0F #203B0F
monochromatic
#080618 #080618 #140F3B #251B6C #35289D

Accessibility & contrast

On white

18.08
#140F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F3B
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F3B#FFFFFF#000000##FFFFFF
##140F3B1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#00153A
Tritanopia (blue-blind)
#021A23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #140f3b;
/* rgb */ color: rgb(20, 15, 59);
/* oklch */ color: oklch(20.8% 0.081 281.8);
Tailwind
colors: {
  custom: {
    50: '#574d71',
    500: '#140f3b',
    950: '#000000',
  },
}
SCSS
$custom: #140f3b;
$custom-light: #574d71;
$custom-dark: #000000;
JSON
{
  "hex": "#140f3b",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 246.818,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20797,
    "c": 0.08115,
    "h": 281.8
  },
  "luminance": 0.00806
}

Semantic roles & 50–950 ramp

primary
#140F3B
secondary
#6E7530
accent
#E345D1
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030108
muted
#78777B

Preview Lab

Preview with #140F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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