#140F4F#140F4F

#140F4F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.111 H 276.6°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#140F4F
RGBrgb(20, 15, 79)
HSLhsl(245, 68%, 18%)
HSVhsv(245, 81%, 31%)
CMYKcmyk(74.7%, 81%, 0%, 69%)
CIE-LABlab(9.44, 25.33, -38.13)
CIE-LCHlch(9.44, 45.77, 303.60°)
OKLaboklab(23.02% 0.0128 -0.1102)
OKLCHoklch(23.02% 0.111 276.6)
XYZxyz(1.8701, 1.0547, 7.5006)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F4F #4A4F0F
analogous
#0F2A4F #140F4F #340F4F
triadic
#140F4F #4F140F #0F4F14
tetradic
#140F4F #4F0F2A #4A4F0F #0F4F34
square
#140F4F #4F0F2A #4A4F0F #0F4F34
split-complementary
#140F4F #4F340F #2A4F0F
monochromatic
#07051A #07051C #140F4F #211982 #2E23B6

Accessibility & contrast

On white

17.34
#140F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#140F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F4F
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F4F#FFFFFF#000000##FFFFFF
##140F4F1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#00184E
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #140f4f;
/* rgb */ color: rgb(20, 15, 79);
/* oklch */ color: oklch(23.0% 0.111 276.6);
Tailwind
colors: {
  custom: {
    50: '#5c4e81',
    500: '#140f4f',
    950: '#000000',
  },
}
SCSS
$custom: #140f4f;
$custom-light: #5c4e81;
$custom-dark: #000000;
JSON
{
  "hex": "#140f4f",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 244.688,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23024,
    "c": 0.11092,
    "h": 276.6
  },
  "luminance": 0.01055
}

Semantic roles & 50–950 ramp

primary
#140F4F
secondary
#828931
accent
#EB3DDD
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #140F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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