#140F45#140F45

#140F45 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.9% C 0.096 H 279.0°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#140F45
RGBrgb(20, 15, 69)
HSLhsl(246, 64%, 16%)
HSVhsv(246, 78%, 27%)
CMYKcmyk(71%, 78.3%, 0%, 72.9%)
CIE-LABlab(8.31, 21.57, -33.02)
CIE-LCHlch(8.31, 39.44, 303.15°)
OKLaboklab(21.87% 0.015 -0.0953)
OKLCHoklch(21.87% 0.096 279)
XYZxyz(1.5331, 0.9199, 5.7258)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F45 #40450F
analogous
#0F2545 #140F45 #2F0F45
triadic
#140F45 #45140F #0F4514
tetradic
#140F45 #450F25 #40450F #0F452F
square
#140F45 #450F25 #40450F #0F452F
split-complementary
#140F45 #452F0F #25450F
monochromatic
#070519 #070519 #140F45 #231A77 #3125AA

Accessibility & contrast

On white

17.74
#140F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F45
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F45#FFFFFF#000000##FFFFFF
##140F451.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001644
Tritanopia (blue-blind)
#001E28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #140f45;
/* rgb */ color: rgb(20, 15, 69);
/* oklch */ color: oklch(21.9% 0.096 279.0);
Tailwind
colors: {
  custom: {
    50: '#594e79',
    500: '#140f45',
    950: '#000000',
  },
}
SCSS
$custom: #140f45;
$custom-light: #594e79;
$custom-dark: #000000;
JSON
{
  "hex": "#140f45",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 245.556,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21874,
    "c": 0.09645,
    "h": 279
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#140F45
secondary
#787F30
accent
#E741D8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140F45

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

Preview Lab → · Contrast checker → · Palette generator →

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