#140F5B#140F5B

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

Color values

HEX#140F5B
RGBrgb(20, 15, 91)
HSLhsl(244, 72%, 21%)
HSVhsv(244, 84%, 36%)
CMYKcmyk(78%, 83.5%, 0%, 64.3%)
CIE-LABlab(10.89, 29.70, -43.91)
CIE-LCHlch(10.89, 53.01, 304.07°)
OKLaboklab(24.48% 0.0098 -0.127)
OKLCHoklch(24.48% 0.127 274.4)
XYZxyz(2.3470, 1.2455, 10.0122)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F5B #565B0F
analogous
#0F305B #140F5B #3A0F5B
triadic
#140F5B #5B140F #0F5B14
tetradic
#140F5B #5B0F30 #565B0F #0F5B3A
square
#140F5B #5B0F30 #565B0F #0F5B3A
split-complementary
#140F5B #5B3A0F #305B0F
monochromatic
#06041A #080626 #140F5B #201890 #2B20C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##140F5B#FFFFFF#000000##FFFFFF
##140F5B1.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)
#00215D
Deuteranopia (green-blind)
#001A5A
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #140f5b;
/* rgb */ color: rgb(20, 15, 91);
/* oklch */ color: oklch(24.5% 0.127 274.4);
Tailwind
colors: {
  custom: {
    50: '#5f4f8a',
    500: '#140f5b',
    950: '#000000',
  },
}
SCSS
$custom: #140f5b;
$custom-light: #5f4f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#140f5b",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 243.947,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.24475,
    "c": 0.12739,
    "h": 274.4
  },
  "luminance": 0.01246
}

Semantic roles & 50–950 ramp

primary
#140F5B
secondary
#8E9531
accent
#EE39E3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #140F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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