#140C4B#140C4B

#140C4B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.1% C 0.109 H 278.4°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#140C4B
RGBrgb(20, 12, 75)
HSLhsl(248, 72%, 17%)
HSVhsv(248, 84%, 29%)
CMYKcmyk(73.3%, 84%, 0%, 70.6%)
CIE-LABlab(8.30, 25.74, -37.23)
CIE-LCHlch(8.30, 45.26, 304.66°)
OKLaboklab(22.08% 0.0159 -0.1075)
OKLCHoklch(22.08% 0.109 278.4)
XYZxyz(1.6896, 0.9195, 6.7437)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C4B #434B0C
analogous
#0C244B #140C4B #340C4B
triadic
#140C4B #4B140C #0C4B14
tetradic
#140C4B #4B0C24 #434B0C #0C4B34
square
#140C4B #4B0C24 #434B0C #0C4B34
split-complementary
#140C4B #4B340C #244B0C
monochromatic
#07041A #07041A #140C4B #221480 #301DB5

Accessibility & contrast

On white

17.74
#140C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#140C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C4B
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C4B#FFFFFF#000000##FFFFFF
##140C4B1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140c4b;
/* rgb */ color: rgb(20, 12, 75);
/* oklch */ color: oklch(22.1% 0.109 278.4);
Tailwind
colors: {
  custom: {
    50: '#5b4c7e',
    500: '#140c4b',
    950: '#000000',
  },
}
SCSS
$custom: #140c4b;
$custom-light: #5b4c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#140c4b",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 247.619,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2208,
    "c": 0.10869,
    "h": 278.4
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#140C4B
secondary
#7B872C
accent
#EF39D8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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