#140E42#140E42

#140E42 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.093 H 280.2°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#140E42
RGBrgb(20, 14, 66)
HSLhsl(247, 65%, 16%)
HSVhsv(247, 79%, 26%)
CMYKcmyk(69.7%, 78.8%, 0%, 74.1%)
CIE-LABlab(7.73, 21.10, -31.85)
CIE-LCHlch(7.73, 38.20, 303.53°)
OKLaboklab(21.36% 0.0165 -0.0918)
OKLCHoklch(21.36% 0.093 280.2)
XYZxyz(1.4286, 0.8560, 5.2432)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140E42 #3C420E
analogous
#0E2242 #140E42 #2E0E42
triadic
#140E42 #42140E #0E4214
tetradic
#140E42 #420E22 #3C420E #0E422E
square
#140E42 #420E22 #3C420E #0E422E
split-complementary
#140E42 #422E0E #22420E
monochromatic
#080519 #080519 #140E42 #231974 #3323A7

Accessibility & contrast

On white

17.93
#140E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#140E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140E42
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140E42#FFFFFF#000000##FFFFFF
##140E421.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140e42;
/* rgb */ color: rgb(20, 14, 66);
/* oklch */ color: oklch(21.4% 0.093 280.2);
Tailwind
colors: {
  custom: {
    50: '#594d77',
    500: '#140e42',
    950: '#000000',
  },
}
SCSS
$custom: #140e42;
$custom-light: #594d77;
$custom-dark: #000000;
JSON
{
  "hex": "#140e42",
  "rgb": {
    "r": 20,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 246.923,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21362,
    "c": 0.0933,
    "h": 280.2
  },
  "luminance": 0.00856
}

Semantic roles & 50–950 ramp

primary
#140E42
secondary
#747D2F
accent
#E840D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140E42

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

Preview Lab → · Contrast checker → · Palette generator →

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