#140C4F#140C4F

#140C4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.114 H 277.4°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#140C4F
RGBrgb(20, 12, 79)
HSLhsl(247, 74%, 18%)
HSVhsv(247, 85%, 31%)
CMYKcmyk(74.7%, 84.8%, 0%, 69%)
CIE-LABlab(8.79, 27.18, -39.20)
CIE-LCHlch(8.79, 47.70, 304.74°)
OKLaboklab(22.57% 0.0147 -0.1133)
OKLCHoklch(22.57% 0.114 277.4)
XYZxyz(1.8308, 0.9760, 7.4875)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C4F #474F0C
analogous
#0C254F #140C4F #350C4F
triadic
#140C4F #4F140C #0C4F14
tetradic
#140C4F #4F0C25 #474F0C #0C4F35
square
#140C4F #4F0C25 #474F0C #0C4F35
split-complementary
#140C4F #4F350C #254F0C
monochromatic
#07041B #07041B #140C4F #211484 #2F1CB9

Accessibility & contrast

On white

17.57
#140C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C4F
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C4F#FFFFFF#000000##FFFFFF
##140C4F1.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140c4f;
/* rgb */ color: rgb(20, 12, 79);
/* oklch */ color: oklch(22.6% 0.114 277.4);
Tailwind
colors: {
  custom: {
    50: '#5c4c81',
    500: '#140c4f',
    950: '#000000',
  },
}
SCSS
$custom: #140c4f;
$custom-light: #5c4c81;
$custom-dark: #000000;
JSON
{
  "hex": "#140c4f",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 247.164,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22567,
    "c": 0.11421,
    "h": 277.4
  },
  "luminance": 0.00976
}

Semantic roles & 50–950 ramp

primary
#140C4F
secondary
#7F8B2C
accent
#F038DA
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #140C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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