#140F42#140F42

#140F42 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.092 H 279.8°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#140F42
RGBrgb(20, 15, 66)
HSLhsl(246, 63%, 16%)
HSVhsv(246, 77%, 26%)
CMYKcmyk(69.7%, 77.3%, 0%, 74.1%)
CIE-LABlab(7.98, 20.42, -31.44)
CIE-LCHlch(7.98, 37.49, 303.01°)
OKLaboklab(21.54% 0.0156 -0.0906)
OKLCHoklch(21.54% 0.092 279.8)
XYZxyz(1.4424, 0.8836, 5.2477)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F42 #3D420F
analogous
#0F2342 #140F42 #2D0F42
triadic
#140F42 #42140F #0F4214
tetradic
#140F42 #420F23 #3D420F #0F422D
square
#140F42 #420F23 #3D420F #0F422D
split-complementary
#140F42 #422D0F #23420F
monochromatic
#080619 #080619 #140F42 #231A74 #3226A6

Accessibility & contrast

On white

17.85
#140F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#140F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F42
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F42#FFFFFF#000000##FFFFFF
##140F421.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#001C27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140f42;
/* rgb */ color: rgb(20, 15, 66);
/* oklch */ color: oklch(21.5% 0.092 279.8);
Tailwind
colors: {
  custom: {
    50: '#584d77',
    500: '#140f42',
    950: '#000000',
  },
}
SCSS
$custom: #140f42;
$custom-light: #584d77;
$custom-dark: #000000;
JSON
{
  "hex": "#140f42",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 245.882,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21543,
    "c": 0.09195,
    "h": 279.8
  },
  "luminance": 0.00884
}

Semantic roles & 50–950 ramp

primary
#140F42
secondary
#757C30
accent
#E642D6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140F42

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

Preview Lab → · Contrast checker → · Palette generator →

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