#140F2F#140F2F

#140F2F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.6% C 0.061 H 286.4°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#140F2F
RGBrgb(20, 15, 47)
HSLhsl(249, 52%, 12%)
HSVhsv(249, 68%, 18%)
CMYKcmyk(57.4%, 68.1%, 0%, 81.6%)
CIE-LABlab(6.28, 12.49, -20.41)
CIE-LCHlch(6.28, 23.93, 301.46°)
OKLaboklab(19.63% 0.0174 -0.0589)
OKLCHoklch(19.63% 0.061 286.4)
XYZxyz(0.9723, 0.6956, 2.7718)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F2F #2A2F0F
analogous
#0F1A2F #140F2F #240F2F
triadic
#140F2F #2F140F #0F2F14
tetradic
#140F2F #2F0F1A #2A2F0F #0F2F24
square
#140F2F #2F0F1A #2A2F0F #0F2F24
split-complementary
#140F2F #2F240F #1A2F0F
monochromatic
#0A0717 #0A0717 #140F2F #281E5D #3B2D8C

Accessibility & contrast

On white

18.43
#140F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#140F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F2F
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F2F#FFFFFF#000000##FFFFFF
##140F2F1.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#01132E
Tritanopia (blue-blind)
#0B161D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140f2f;
/* rgb */ color: rgb(20, 15, 47);
/* oklch */ color: oklch(19.6% 0.061 286.4);
Tailwind
colors: {
  custom: {
    50: '#544d68',
    500: '#140f2f',
    950: '#000000',
  },
}
SCSS
$custom: #140f2f;
$custom-light: #544d68;
$custom-dark: #000000;
JSON
{
  "hex": "#140f2f",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 249.375,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19628,
    "c": 0.06146,
    "h": 286.4
  },
  "luminance": 0.00696
}

Semantic roles & 50–950 ramp

primary
#140F2F
secondary
#606931
accent
#DB4DC5
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #140F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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