#140F5A#140F5A

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

Color values

HEX#140F5A
RGBrgb(20, 15, 90)
HSLhsl(244, 71%, 21%)
HSVhsv(244, 83%, 35%)
CMYKcmyk(77.8%, 83.3%, 0%, 64.7%)
CIE-LABlab(10.76, 29.35, -43.44)
CIE-LCHlch(10.76, 52.43, 304.04°)
OKLaboklab(24.35% 0.0101 -0.1257)
OKLCHoklch(24.35% 0.126 274.6)
XYZxyz(2.3042, 1.2283, 9.7865)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F5A #555A0F
analogous
#0F2F5A #140F5A #390F5A
triadic
#140F5A #5A140F #0F5A14
tetradic
#140F5A #5A0F2F #555A0F #0F5A39
square
#140F5A #5A0F2F #555A0F #0F5A39
split-complementary
#140F5A #5A390F #2F5A0F
monochromatic
#06041A #080626 #140F5A #20188E #2B20C3

Accessibility & contrast

On white

16.86
#140F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F5A
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F5A#FFFFFF#000000##FFFFFF
##140F5A1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205C
Deuteranopia (green-blind)
#001959
Tritanopia (blue-blind)
#002634
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #140f5a;
/* rgb */ color: rgb(20, 15, 90);
/* oklch */ color: oklch(24.4% 0.126 274.6);
Tailwind
colors: {
  custom: {
    50: '#5f4f8a',
    500: '#140f5a',
    950: '#000000',
  },
}
SCSS
$custom: #140f5a;
$custom-light: #5f4f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#140f5a",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 244,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24352,
    "c": 0.12605,
    "h": 274.6
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#140F5A
secondary
#8D9431
accent
#EE3AE2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #140F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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