#140F4A#140F4A

#140F4A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.104 H 277.7°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#140F4A
RGBrgb(20, 15, 74)
HSLhsl(245, 66%, 17%)
HSVhsv(245, 80%, 29%)
CMYKcmyk(73%, 79.7%, 0%, 71%)
CIE-LABlab(8.86, 23.46, -35.61)
CIE-LCHlch(8.86, 42.65, 303.38°)
OKLaboklab(22.44% 0.014 -0.1028)
OKLCHoklch(22.44% 0.104 277.7)
XYZxyz(1.6949, 0.9846, 6.5780)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F4A #454A0F
analogous
#0F274A #140F4A #320F4A
triadic
#140F4A #4A140F #0F4A14
tetradic
#140F4A #4A0F27 #454A0F #0F4A32
square
#140F4A #4A0F27 #454A0F #0F4A32
split-complementary
#140F4A #4A320F #274A0F
monochromatic
#070519 #070519 #140F4A #22197D #3024B0

Accessibility & contrast

On white

17.54
#140F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F4A
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F4A#FFFFFF#000000##FFFFFF
##140F4A1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001749
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140f4a;
/* rgb */ color: rgb(20, 15, 74);
/* oklch */ color: oklch(22.4% 0.104 277.7);
Tailwind
colors: {
  custom: {
    50: '#5b4e7d',
    500: '#140f4a',
    950: '#000000',
  },
}
SCSS
$custom: #140f4a;
$custom-light: #5b4e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#140f4a",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 245.085,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22441,
    "c": 0.10378,
    "h": 277.7
  },
  "luminance": 0.00985
}

Semantic roles & 50–950 ramp

primary
#140F4A
secondary
#7D8430
accent
#E93FDB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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