#140C56#140C56

#140C56 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.4% C 0.124 H 275.9°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#140C56
RGBrgb(20, 12, 86)
HSLhsl(246, 76%, 19%)
HSVhsv(246, 86%, 34%)
CMYKcmyk(76.7%, 86%, 0%, 66.3%)
CIE-LABlab(9.67, 29.65, -42.55)
CIE-LCHlch(9.67, 51.85, 304.87°)
OKLaboklab(23.44% 0.0127 -0.123)
OKLCHoklch(23.44% 0.124 275.9)
XYZxyz(2.0991, 1.0834, 8.9008)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C56 #4E560C
analogous
#0C2956 #140C56 #390C56
triadic
#140C56 #56140C #0C5614
tetradic
#140C56 #560C29 #4E560C #0C5639
square
#140C56 #560C29 #4E560C #0C5639
split-complementary
#140C56 #56390C #29560C
monochromatic
#06041B #080520 #140C56 #20138C #2D1BC1

Accessibility & contrast

On white

17.26
#140C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#140C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C56
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C56#FFFFFF#000000##FFFFFF
##140C561.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E58
Deuteranopia (green-blind)
#001755
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #140c56;
/* rgb */ color: rgb(20, 12, 86);
/* oklch */ color: oklch(23.4% 0.124 275.9);
Tailwind
colors: {
  custom: {
    50: '#5e4d87',
    500: '#140c56',
    950: '#000000',
  },
}
SCSS
$custom: #140c56;
$custom-light: #5e4d87;
$custom-dark: #000000;
JSON
{
  "hex": "#140c56",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 86
  },
  "hsl": {
    "h": 246.486,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.23438,
    "c": 0.12365,
    "h": 275.9
  },
  "luminance": 0.01084
}

Semantic roles & 50–950 ramp

primary
#140C56
secondary
#86912D
accent
#F236DE
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #140C56

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

Preview Lab → · Contrast checker → · Palette generator →

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