#140E4B#140E4B

#140E4B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.106 H 277.8°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#140E4B
RGBrgb(20, 14, 75)
HSLhsl(246, 69%, 17%)
HSVhsv(246, 81%, 29%)
CMYKcmyk(73.3%, 81.3%, 0%, 70.6%)
CIE-LABlab(8.74, 24.49, -36.50)
CIE-LCHlch(8.74, 43.95, 303.86°)
OKLaboklab(22.39% 0.0145 -0.1054)
OKLCHoklch(22.39% 0.106 277.8)
XYZxyz(1.7151, 0.9707, 6.7522)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140E4B #454B0E
analogous
#0E264B #140E4B #330E4B
triadic
#140E4B #4B140E #0E4B14
tetradic
#140E4B #4B0E26 #454B0E #0E4B33
square
#140E4B #4B0E26 #454B0E #0E4B33
split-complementary
#140E4B #4B330E #264B0E
monochromatic
#07051A #07051A #140E4B #22187F #3021B2

Accessibility & contrast

On white

17.58
#140E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#140E4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140E4B
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140E4B#FFFFFF#000000##FFFFFF
##140E4B1.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00164A
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140e4b;
/* rgb */ color: rgb(20, 14, 75);
/* oklch */ color: oklch(22.4% 0.106 277.8);
Tailwind
colors: {
  custom: {
    50: '#5b4d7e',
    500: '#140e4b',
    950: '#000000',
  },
}
SCSS
$custom: #140e4b;
$custom-light: #5b4d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#140e4b",
  "rgb": {
    "r": 20,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 245.902,
    "s": 68.539,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22392,
    "c": 0.10641,
    "h": 277.8
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#140E4B
secondary
#7D862F
accent
#EB3CDA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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