#140F52#140F52

#140F52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.115 H 276.0°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#140F52
RGBrgb(20, 15, 82)
HSLhsl(244, 69%, 19%)
HSVhsv(244, 82%, 32%)
CMYKcmyk(75.6%, 81.7%, 0%, 67.8%)
CIE-LABlab(9.79, 26.44, -39.60)
CIE-LCHlch(9.79, 47.62, 303.73°)
OKLaboklab(23.38% 0.0121 -0.1145)
OKLCHoklch(23.38% 0.115 276)
XYZxyz(1.9818, 1.0994, 8.0888)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F52 #4D520F
analogous
#0F2C52 #140F52 #360F52
triadic
#140F52 #52140F #0F5214
tetradic
#140F52 #520F2C #4D520F #0F5236
square
#140F52 #520F2C #4D520F #0F5236
split-complementary
#140F52 #52360F #2C520F
monochromatic
#06051A #07061E #140F52 #211886 #2D22B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##140F52#FFFFFF#000000##FFFFFF
##140F521.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)
#001E54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #140f52;
/* rgb */ color: rgb(20, 15, 82);
/* oklch */ color: oklch(23.4% 0.115 276.0);
Tailwind
colors: {
  custom: {
    50: '#5d4e83',
    500: '#140f52',
    950: '#000000',
  },
}
SCSS
$custom: #140f52;
$custom-light: #5d4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#140f52",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 244.478,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2338,
    "c": 0.11512,
    "h": 276
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#140F52
secondary
#858C31
accent
#EC3CDF
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #140F52

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

Preview Lab → · Contrast checker → · Palette generator →

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