#140D5E#140D5E

#140D5E is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.6% C 0.133 H 274.2°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#140D5E
RGBrgb(20, 13, 94)
HSLhsl(245, 76%, 21%)
HSVhsv(245, 86%, 37%)
CMYKcmyk(78.7%, 86.2%, 0%, 63.1%)
CIE-LABlab(10.88, 31.87, -45.94)
CIE-LCHlch(10.88, 55.91, 304.75°)
OKLaboklab(24.58% 0.0099 -0.1329)
OKLCHoklch(24.58% 0.133 274.2)
XYZxyz(2.4521, 1.2445, 10.6985)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D5E #575E0D
analogous
#0D2E5E #140D5E #3C0D5E
triadic
#140D5E #5E140D #0D5E14
tetradic
#140D5E #5E0D2E #575E0D #0D5E3C
square
#140D5E #5E0D2E #575E0D #0D5E3C
split-complementary
#140D5E #5E3C0D #2E5E0D
monochromatic
#06041B #090628 #140D5E #1F1494 #2B1CCA

Accessibility & contrast

On white

16.81
#140D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140D5E
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D5E#FFFFFF#000000##FFFFFF
##140D5E1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002160
Deuteranopia (green-blind)
#00195D
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #140d5e;
/* rgb */ color: rgb(20, 13, 94);
/* oklch */ color: oklch(24.6% 0.133 274.2);
Tailwind
colors: {
  custom: {
    50: '#604e8d',
    500: '#140d5e',
    950: '#000000',
  },
}
SCSS
$custom: #140d5e;
$custom-light: #604e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#140d5e",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 94
  },
  "hsl": {
    "h": 245.185,
    "s": 75.701,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24581,
    "c": 0.13324,
    "h": 274.2
  },
  "luminance": 0.01245
}

Semantic roles & 50–950 ramp

primary
#140D5E
secondary
#8F982F
accent
#F236E2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #140D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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