#140C4E#140C4E

#140C4E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.113 H 277.6°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#140C4E
RGBrgb(20, 12, 78)
HSLhsl(247, 73%, 18%)
HSVhsv(247, 85%, 31%)
CMYKcmyk(74.4%, 84.6%, 0%, 69.4%)
CIE-LABlab(8.67, 26.82, -38.71)
CIE-LCHlch(8.67, 47.09, 304.72°)
OKLaboklab(22.44% 0.015 -0.1118)
OKLCHoklch(22.44% 0.113 277.6)
XYZxyz(1.7947, 0.9616, 7.2973)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C4E #464E0C
analogous
#0C254E #140C4E #350C4E
triadic
#140C4E #4E140C #0C4E14
tetradic
#140C4E #4E0C25 #464E0C #0C4E35
square
#140C4E #4E0C25 #464E0C #0C4E35
split-complementary
#140C4E #4E350C #254E0C
monochromatic
#07041B #07041B #140C4E #221483 #2F1CB8

Accessibility & contrast

On white

17.61
#140C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#140C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C4E
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C4E#FFFFFF#000000##FFFFFF
##140C4E1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140c4e;
/* rgb */ color: rgb(20, 12, 78);
/* oklch */ color: oklch(22.4% 0.113 277.6);
Tailwind
colors: {
  custom: {
    50: '#5c4c80',
    500: '#140c4e',
    950: '#000000',
  },
}
SCSS
$custom: #140c4e;
$custom-light: #5c4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#140c4e",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 247.273,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22444,
    "c": 0.11284,
    "h": 277.6
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#140C4E
secondary
#7E8A2C
accent
#F038DA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #140C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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