#140C41#140C41

#140C41 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.094 H 281.3°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#140C41
RGBrgb(20, 12, 65)
HSLhsl(249, 69%, 15%)
HSVhsv(249, 82%, 25%)
CMYKcmyk(69.2%, 81.5%, 0%, 74.5%)
CIE-LABlab(7.16, 21.95, -32.06)
CIE-LCHlch(7.16, 38.86, 304.39°)
OKLaboklab(20.9% 0.0185 -0.0926)
OKLCHoklch(20.9% 0.094 281.3)
XYZxyz(1.3738, 0.7932, 5.0807)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C41 #39410C
analogous
#0C1E41 #140C41 #2F0C41
triadic
#140C41 #41140C #0C4114
tetradic
#140C41 #410C1E #39410C #0C412F
square
#140C41 #410C1E #39410C #0C412F
split-complementary
#140C41 #412F0C #1E410C
monochromatic
#08051A #08051A #140C41 #241675 #341FA8

Accessibility & contrast

On white

18.13
#140C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#140C41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C41
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C41#FFFFFF#000000##FFFFFF
##140C411.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #140c41;
/* rgb */ color: rgb(20, 12, 65);
/* oklch */ color: oklch(20.9% 0.094 281.3);
Tailwind
colors: {
  custom: {
    50: '#594b76',
    500: '#140c41',
    950: '#000000',
  },
}
SCSS
$custom: #140c41;
$custom-light: #594b76;
$custom-dark: #000000;
JSON
{
  "hex": "#140c41",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 249.057,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20903,
    "c": 0.09444,
    "h": 281.3
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#140C41
secondary
#717D2C
accent
#EC3CD1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140C41

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

Preview Lab → · Contrast checker → · Palette generator →

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