#140F5C#140F5C

#140F5C is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.6% C 0.129 H 274.3°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#140F5C
RGBrgb(20, 15, 92)
HSLhsl(244, 72%, 21%)
HSVhsv(244, 84%, 36%)
CMYKcmyk(78.3%, 83.7%, 0%, 63.9%)
CIE-LABlab(11.01, 30.06, -44.38)
CIE-LCHlch(11.01, 53.60, 304.11°)
OKLaboklab(24.6% 0.0096 -0.1284)
OKLCHoklch(24.6% 0.129 274.3)
XYZxyz(2.3904, 1.2628, 10.2409)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F5C #575C0F
analogous
#0F305C #140F5C #3A0F5C
triadic
#140F5C #5C140F #0F5C14
tetradic
#140F5C #5C0F30 #575C0F #0F5C3A
square
#140F5C #5C0F30 #575C0F #0F5C3A
split-complementary
#140F5C #5C3A0F #305C0F
monochromatic
#06041A #090627 #140F5C #1F1891 #2B20C5

Accessibility & contrast

On white

16.77
#140F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#140F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F5C
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F5C#FFFFFF#000000##FFFFFF
##140F5C1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215E
Deuteranopia (green-blind)
#001A5B
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #140f5c;
/* rgb */ color: rgb(20, 15, 92);
/* oklch */ color: oklch(24.6% 0.129 274.3);
Tailwind
colors: {
  custom: {
    50: '#604f8b',
    500: '#140f5c',
    950: '#000000',
  },
}
SCSS
$custom: #140f5c;
$custom-light: #604f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#140f5c",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 243.896,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24599,
    "c": 0.12872,
    "h": 274.3
  },
  "luminance": 0.01263
}

Semantic roles & 50–950 ramp

primary
#140F5C
secondary
#8F9531
accent
#EF39E3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #140F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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