#140C57#140C57

#140C57 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.6% C 0.125 H 275.7°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#140C57
RGBrgb(20, 12, 87)
HSLhsl(246, 76%, 19%)
HSVhsv(246, 86%, 34%)
CMYKcmyk(77%, 86.2%, 0%, 65.9%)
CIE-LABlab(9.79, 30.00, -43.02)
CIE-LCHlch(9.79, 52.44, 304.89°)
OKLaboklab(23.56% 0.0124 -0.1244)
OKLCHoklch(23.56% 0.125 275.7)
XYZxyz(2.1397, 1.0996, 9.1145)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C57 #4F570C
analogous
#0C2A57 #140C57 #3A0C57
triadic
#140C57 #57140C #0C5714
tetradic
#140C57 #570C2A #4F570C #0C573A
square
#140C57 #570C2A #4F570C #0C573A
split-complementary
#140C57 #573A0C #2A570C
monochromatic
#06041B #080521 #140C57 #20138D #2D1BC3

Accessibility & contrast

On white

17.21
#140C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140C57
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C57#FFFFFF#000000##FFFFFF
##140C571.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E59
Deuteranopia (green-blind)
#001856
Tritanopia (blue-blind)
#002332
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #140c57;
/* rgb */ color: rgb(20, 12, 87);
/* oklch */ color: oklch(23.6% 0.125 275.7);
Tailwind
colors: {
  custom: {
    50: '#5f4d87',
    500: '#140c57',
    950: '#000000',
  },
}
SCSS
$custom: #140c57;
$custom-light: #5f4d87;
$custom-dark: #000000;
JSON
{
  "hex": "#140c57",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 246.4,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23564,
    "c": 0.12497,
    "h": 275.7
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#140C57
secondary
#87922D
accent
#F235DE
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05010B
muted
#79777C

Preview Lab

Preview with #140C57

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

Preview Lab → · Contrast checker → · Palette generator →

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