#140C54#140C54

#140C54 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.2% C 0.121 H 276.3°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#140C54
RGBrgb(20, 12, 84)
HSLhsl(247, 75%, 19%)
HSVhsv(247, 86%, 33%)
CMYKcmyk(76.2%, 85.7%, 0%, 67.1%)
CIE-LABlab(9.41, 28.95, -41.60)
CIE-LCHlch(9.41, 50.68, 304.83°)
OKLaboklab(23.19% 0.0133 -0.1202)
OKLCHoklch(23.19% 0.121 276.3)
XYZxyz(2.0197, 1.0516, 8.4823)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C54 #4C540C
analogous
#0C2854 #140C54 #380C54
triadic
#140C54 #54140C #0C5414
tetradic
#140C54 #540C28 #4C540C #0C5438
square
#140C54 #540C28 #4C540C #0C5438
split-complementary
#140C54 #54380C #28540C
monochromatic
#06041B #07041E #140C54 #21148A #2E1BBF

Accessibility & contrast

On white

17.35
#140C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#140C54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C54
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C54#FFFFFF#000000##FFFFFF
##140C541.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D56
Deuteranopia (green-blind)
#001753
Tritanopia (blue-blind)
#002230
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #140c54;
/* rgb */ color: rgb(20, 12, 84);
/* oklch */ color: oklch(23.2% 0.121 276.3);
Tailwind
colors: {
  custom: {
    50: '#5e4d85',
    500: '#140c54',
    950: '#000000',
  },
}
SCSS
$custom: #140c54;
$custom-light: #5e4d85;
$custom-dark: #000000;
JSON
{
  "hex": "#140c54",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 84
  },
  "hsl": {
    "h": 246.667,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23187,
    "c": 0.12098,
    "h": 276.3
  },
  "luminance": 0.01052
}

Semantic roles & 50–950 ramp

primary
#140C54
secondary
#848F2D
accent
#F236DD
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #140C54

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

Preview Lab → · Contrast checker → · Palette generator →

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