#140C50#140C50

#140C50 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.7% C 0.116 H 277.2°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#140C50
RGBrgb(20, 12, 80)
HSLhsl(247, 74%, 18%)
HSVhsv(247, 85%, 31%)
CMYKcmyk(75%, 85%, 0%, 68.6%)
CIE-LABlab(8.91, 27.53, -39.68)
CIE-LCHlch(8.91, 48.30, 304.75°)
OKLaboklab(22.69% 0.0144 -0.1147)
OKLCHoklch(22.69% 0.116 277.2)
XYZxyz(1.8675, 0.9907, 7.6807)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C50 #48500C
analogous
#0C2650 #140C50 #360C50
triadic
#140C50 #50140C #0C5014
tetradic
#140C50 #500C26 #48500C #0C5036
square
#140C50 #500C26 #48500C #0C5036
split-complementary
#140C50 #50360C #26500C
monochromatic
#07041B #07041B #140C50 #211485 #2F1CBA

Accessibility & contrast

On white

17.53
#140C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C50
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C50#FFFFFF#000000##FFFFFF
##140C501.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C52
Deuteranopia (green-blind)
#00164F
Tritanopia (blue-blind)
#00202E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140c50;
/* rgb */ color: rgb(20, 12, 80);
/* oklch */ color: oklch(22.7% 0.116 277.2);
Tailwind
colors: {
  custom: {
    50: '#5d4c82',
    500: '#140c50',
    950: '#000000',
  },
}
SCSS
$custom: #140c50;
$custom-light: #5d4c82;
$custom-dark: #000000;
JSON
{
  "hex": "#140c50",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 247.059,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2269,
    "c": 0.11557,
    "h": 277.2
  },
  "luminance": 0.00991
}

Semantic roles & 50–950 ramp

primary
#140C50
secondary
#808B2C
accent
#F137DB
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #140C50

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

Preview Lab → · Contrast checker → · Palette generator →

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