#140C48#140C48

#140C48 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.104 H 279.2°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#140C48
RGBrgb(20, 12, 72)
HSLhsl(248, 71%, 16%)
HSVhsv(248, 83%, 28%)
CMYKcmyk(72.2%, 83.3%, 0%, 71.8%)
CIE-LABlab(7.94, 24.65, -35.73)
CIE-LCHlch(7.94, 43.41, 304.61°)
OKLaboklab(21.72% 0.0167 -0.1031)
OKLCHoklch(21.72% 0.104 279.2)
XYZxyz(1.5893, 0.8794, 6.2156)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C48 #40480C
analogous
#0C2248 #140C48 #320C48
triadic
#140C48 #48140C #0C4814
tetradic
#140C48 #480C22 #40480C #0C4832
square
#140C48 #480C22 #40480C #0C4832
split-complementary
#140C48 #48320C #22480C
monochromatic
#07041A #07041A #140C48 #23157C #311DB1

Accessibility & contrast

On white

17.86
#140C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C48
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C48#FFFFFF#000000##FFFFFF
##140C481.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140c48;
/* rgb */ color: rgb(20, 12, 72);
/* oklch */ color: oklch(21.7% 0.104 279.2);
Tailwind
colors: {
  custom: {
    50: '#5a4c7c',
    500: '#140c48',
    950: '#000000',
  },
}
SCSS
$custom: #140c48;
$custom-light: #5a4c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#140c48",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 248,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2172,
    "c": 0.10448,
    "h": 279.2
  },
  "luminance": 0.0088
}

Semantic roles & 50–950 ramp

primary
#140C48
secondary
#78842C
accent
#EE3AD6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #140C48

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

Preview Lab → · Contrast checker → · Palette generator →

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