#140F4E#140F4E

#140F4E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.110 H 276.9°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#140F4E
RGBrgb(20, 15, 78)
HSLhsl(245, 68%, 18%)
HSVhsv(245, 81%, 31%)
CMYKcmyk(74.4%, 80.8%, 0%, 69.4%)
CIE-LABlab(9.32, 24.96, -37.63)
CIE-LCHlch(9.32, 45.15, 303.56°)
OKLaboklab(22.91% 0.0131 -0.1087)
OKLCHoklch(22.91% 0.11 276.9)
XYZxyz(1.8340, 1.0403, 7.3104)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F4E #494E0F
analogous
#0F294E #140F4E #330F4E
triadic
#140F4E #4E140F #0F4E14
tetradic
#140F4E #4E0F29 #494E0F #0F4E33
square
#140F4E #4E0F29 #494E0F #0F4E33
split-complementary
#140F4E #4E330F #294E0F
monochromatic
#07051A #07051B #140F4E #211981 #2E23B5

Accessibility & contrast

On white

17.38
#140F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F4E
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F4E#FFFFFF#000000##FFFFFF
##140F4E1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#00174D
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #140f4e;
/* rgb */ color: rgb(20, 15, 78);
/* oklch */ color: oklch(22.9% 0.110 276.9);
Tailwind
colors: {
  custom: {
    50: '#5c4e80',
    500: '#140f4e',
    950: '#000000',
  },
}
SCSS
$custom: #140f4e;
$custom-light: #5c4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#140f4e",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 244.762,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22906,
    "c": 0.1095,
    "h": 276.9
  },
  "luminance": 0.0104
}

Semantic roles & 50–950 ramp

primary
#140F4E
secondary
#818831
accent
#EB3DDD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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