#140D5C#140D5C

#140D5C is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.3% C 0.131 H 274.6°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#140D5C
RGBrgb(20, 13, 92)
HSLhsl(245, 75%, 21%)
HSVhsv(245, 86%, 36%)
CMYKcmyk(78.3%, 85.9%, 0%, 63.9%)
CIE-LABlab(10.62, 31.18, -45.02)
CIE-LCHlch(10.62, 54.77, 304.71°)
OKLaboklab(24.33% 0.0104 -0.1302)
OKLCHoklch(24.33% 0.131 274.6)
XYZxyz(2.3635, 1.2090, 10.2319)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D5C #555C0D
analogous
#0D2E5C #140D5C #3B0D5C
triadic
#140D5C #5C140D #0D5C14
tetradic
#140D5C #5C0D2E #555C0D #0D5C3B
square
#140D5C #5C0D2E #555C0D #0D5C3B
split-complementary
#140D5C #5C3B0D #2E5C0D
monochromatic
#06041B #080526 #140D5C #201592 #2B1CC7

Accessibility & contrast

On white

16.91
#140D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#140D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140D5C
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D5C#FFFFFF#000000##FFFFFF
##140D5C1.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205E
Deuteranopia (green-blind)
#00195B
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #140d5c;
/* rgb */ color: rgb(20, 13, 92);
/* oklch */ color: oklch(24.3% 0.131 274.6);
Tailwind
colors: {
  custom: {
    50: '#604e8b',
    500: '#140d5c',
    950: '#000000',
  },
}
SCSS
$custom: #140d5c;
$custom-light: #604e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#140d5c",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 92
  },
  "hsl": {
    "h": 245.316,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24327,
    "c": 0.13063,
    "h": 274.6
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#140D5C
secondary
#8D962F
accent
#F236E1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #140D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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