#140D4F#140D4F

#140D4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.7% C 0.113 H 277.2°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#140D4F
RGBrgb(20, 13, 79)
HSLhsl(246, 72%, 18%)
HSVhsv(246, 84%, 31%)
CMYKcmyk(74.7%, 83.5%, 0%, 69%)
CIE-LABlab(9.00, 26.58, -38.85)
CIE-LCHlch(9.00, 47.07, 304.38°)
OKLaboklab(22.71% 0.0141 -0.1123)
OKLCHoklch(22.71% 0.113 277.2)
XYZxyz(1.8432, 1.0009, 7.4917)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D4F #484F0D
analogous
#0D274F #140D4F #350D4F
triadic
#140D4F #4F140D #0D4F14
tetradic
#140D4F #4F0D27 #484F0D #0D4F35
square
#140D4F #4F0D27 #484F0D #0D4F35
split-complementary
#140D4F #4F350D #274F0D
monochromatic
#07041A #07041A #140D4F #211684 #2F1EB8

Accessibility & contrast

On white

17.50
#140D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#140D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140D4F
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D4F#FFFFFF#000000##FFFFFF
##140D4F1.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140d4f;
/* rgb */ color: rgb(20, 13, 79);
/* oklch */ color: oklch(22.7% 0.113 277.2);
Tailwind
colors: {
  custom: {
    50: '#5c4d81',
    500: '#140d4f',
    950: '#000000',
  },
}
SCSS
$custom: #140d4f;
$custom-light: #5c4d81;
$custom-dark: #000000;
JSON
{
  "hex": "#140d4f",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 246.364,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22714,
    "c": 0.11315,
    "h": 277.2
  },
  "luminance": 0.01001
}

Semantic roles & 50–950 ramp

primary
#140D4F
secondary
#808A2E
accent
#EE39DB
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #140D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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