#140D52#140D52

#140D52 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 23.1% C 0.117 H 276.5°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#140D52
RGBrgb(20, 13, 82)
HSLhsl(246, 73%, 19%)
HSVhsv(246, 84%, 32%)
CMYKcmyk(75.6%, 84.1%, 0%, 67.8%)
CIE-LABlab(9.37, 27.66, -40.31)
CIE-LCHlch(9.37, 48.89, 304.46°)
OKLaboklab(23.08% 0.0133 -0.1165)
OKLCHoklch(23.08% 0.117 276.5)
XYZxyz(1.9549, 1.0456, 8.0798)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140D52 #4B520D
analogous
#0D2852 #140D52 #360D52
triadic
#140D52 #52140D #0D5214
tetradic
#140D52 #520D28 #4B520D #0D5236
square
#140D52 #520D28 #4B520D #0D5236
split-complementary
#140D52 #52360D #28520D
monochromatic
#06041A #07051D #140D52 #211587 #2E1EBC

Accessibility & contrast

On white

17.37
#140D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#140D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140D52
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140D52#FFFFFF#000000##FFFFFF
##140D521.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001751
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #140d52;
/* rgb */ color: rgb(20, 13, 82);
/* oklch */ color: oklch(23.1% 0.117 276.5);
Tailwind
colors: {
  custom: {
    50: '#5d4d83',
    500: '#140d52',
    950: '#000000',
  },
}
SCSS
$custom: #140d52;
$custom-light: #5d4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#140d52",
  "rgb": {
    "r": 20,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 246.087,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23079,
    "c": 0.11727,
    "h": 276.5
  },
  "luminance": 0.01046
}

Semantic roles & 50–950 ramp

primary
#140D52
secondary
#838D2E
accent
#EF38DD
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #140D52

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

Preview Lab → · Contrast checker → · Palette generator →

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