#140C52#140C52

#140C52 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.118 H 276.7°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#140C52
RGBrgb(20, 12, 82)
HSLhsl(247, 74%, 18%)
HSVhsv(247, 85%, 32%)
CMYKcmyk(75.6%, 85.4%, 0%, 67.8%)
CIE-LABlab(9.16, 28.24, -40.65)
CIE-LCHlch(9.16, 49.50, 304.79°)
OKLaboklab(22.94% 0.0138 -0.1175)
OKLCHoklch(22.94% 0.118 276.7)
XYZxyz(1.9425, 1.0207, 8.0757)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C52 #4A520C
analogous
#0C2752 #140C52 #370C52
triadic
#140C52 #52140C #0C5214
tetradic
#140C52 #520C27 #4A520C #0C5237
square
#140C52 #520C27 #4A520C #0C5237
split-complementary
#140C52 #52370C #27520C
monochromatic
#07041B #07041D #140C52 #211487 #2E1CBD

Accessibility & contrast

On white

17.44
#140C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C52
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C52#FFFFFF#000000##FFFFFF
##140C521.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001751
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #140c52;
/* rgb */ color: rgb(20, 12, 82);
/* oklch */ color: oklch(22.9% 0.118 276.7);
Tailwind
colors: {
  custom: {
    50: '#5d4d83',
    500: '#140c52',
    950: '#000000',
  },
}
SCSS
$custom: #140c52;
$custom-light: #5d4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#140c52",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 82
  },
  "hsl": {
    "h": 246.857,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.22937,
    "c": 0.11829,
    "h": 276.7
  },
  "luminance": 0.01021
}

Semantic roles & 50–950 ramp

primary
#140C52
secondary
#828D2C
accent
#F137DC
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #140C52

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

Preview Lab → · Contrast checker → · Palette generator →

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