#140F4D#140F4D

#140F4D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.8% C 0.108 H 277.1°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#140F4D
RGBrgb(20, 15, 77)
HSLhsl(245, 67%, 18%)
HSVhsv(245, 81%, 30%)
CMYKcmyk(74%, 80.5%, 0%, 69.8%)
CIE-LABlab(9.21, 24.59, -37.13)
CIE-LCHlch(9.21, 44.53, 303.51°)
OKLaboklab(22.79% 0.0133 -0.1073)
OKLCHoklch(22.79% 0.108 277.1)
XYZxyz(1.7984, 1.0260, 7.1230)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F4D #484D0F
analogous
#0F294D #140F4D #330F4D
triadic
#140F4D #4D140F #0F4D14
tetradic
#140F4D #4D0F29 #484D0F #0F4D33
square
#140F4D #4D0F29 #484D0F #0F4D33
split-complementary
#140F4D #4D330F #294D0F
monochromatic
#07051A #07051A #140F4D #211980 #2F23B3

Accessibility & contrast

On white

17.42
#140F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#140F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F4D
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F4D#FFFFFF#000000##FFFFFF
##140F4D1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00174C
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #140f4d;
/* rgb */ color: rgb(20, 15, 77);
/* oklch */ color: oklch(22.8% 0.108 277.1);
Tailwind
colors: {
  custom: {
    50: '#5b4e80',
    500: '#140f4d',
    950: '#000000',
  },
}
SCSS
$custom: #140f4d;
$custom-light: #5b4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#140f4d",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 244.839,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22789,
    "c": 0.10808,
    "h": 277.1
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#140F4D
secondary
#808731
accent
#EA3EDC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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