#140F4B#140F4B

#140F4B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.105 H 277.5°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#140F4B
RGBrgb(20, 15, 75)
HSLhsl(245, 67%, 18%)
HSVhsv(245, 80%, 29%)
CMYKcmyk(73.3%, 80%, 0%, 70.6%)
CIE-LABlab(8.98, 23.84, -36.12)
CIE-LCHlch(8.98, 43.28, 303.43°)
OKLaboklab(22.56% 0.0138 -0.1043)
OKLCHoklch(22.56% 0.105 277.5)
XYZxyz(1.7289, 0.9982, 6.7568)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F4B #464B0F
analogous
#0F284B #140F4B #320F4B
triadic
#140F4B #4B140F #0F4B14
tetradic
#140F4B #4B0F28 #464B0F #0F4B32
square
#140F4B #4B0F28 #464B0F #0F4B32
split-complementary
#140F4B #4B320F #284B0F
monochromatic
#07051A #07051A #140F4B #22197E #2F23B1

Accessibility & contrast

On white

17.51
#140F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#140F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F4B
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F4B#FFFFFF#000000##FFFFFF
##140F4B1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4D
Deuteranopia (green-blind)
#00174A
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140f4b;
/* rgb */ color: rgb(20, 15, 75);
/* oklch */ color: oklch(22.6% 0.105 277.5);
Tailwind
colors: {
  custom: {
    50: '#5b4e7e',
    500: '#140f4b',
    950: '#000000',
  },
}
SCSS
$custom: #140f4b;
$custom-light: #5b4e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#140f4b",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 245,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22557,
    "c": 0.10521,
    "h": 277.5
  },
  "luminance": 0.00998
}

Semantic roles & 50–950 ramp

primary
#140F4B
secondary
#7E8530
accent
#EA3EDB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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