#140C51#140C51

#140C51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.8% C 0.117 H 276.9°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#140C51
RGBrgb(20, 12, 81)
HSLhsl(247, 74%, 18%)
HSVhsv(247, 85%, 32%)
CMYKcmyk(75.3%, 85.2%, 0%, 68.2%)
CIE-LABlab(9.04, 27.89, -40.17)
CIE-LCHlch(9.04, 48.90, 304.77°)
OKLaboklab(22.81% 0.0141 -0.1161)
OKLCHoklch(22.81% 0.117 276.9)
XYZxyz(1.9047, 1.0056, 7.8767)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C51 #49510C
analogous
#0C2651 #140C51 #360C51
triadic
#140C51 #51140C #0C5114
tetradic
#140C51 #510C26 #49510C #0C5136
square
#140C51 #510C26 #49510C #0C5136
split-complementary
#140C51 #51360C #26510C
monochromatic
#07041B #07041C #140C51 #211486 #2E1CBC

Accessibility & contrast

On white

17.48
#140C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C51
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C51#FFFFFF#000000##FFFFFF
##140C511.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #140c51;
/* rgb */ color: rgb(20, 12, 81);
/* oklch */ color: oklch(22.8% 0.117 276.9);
Tailwind
colors: {
  custom: {
    50: '#5d4c83',
    500: '#140c51',
    950: '#000000',
  },
}
SCSS
$custom: #140c51;
$custom-light: #5d4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#140c51",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 246.957,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22813,
    "c": 0.11694,
    "h": 276.9
  },
  "luminance": 0.01006
}

Semantic roles & 50–950 ramp

primary
#140C51
secondary
#818C2C
accent
#F137DB
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #140C51

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

Preview Lab → · Contrast checker → · Palette generator →

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