#140F51#140F51

#140F51 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.114 H 276.2°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#140F51
RGBrgb(20, 15, 81)
HSLhsl(245, 69%, 19%)
HSVhsv(245, 81%, 32%)
CMYKcmyk(75.3%, 81.5%, 0%, 68.2%)
CIE-LABlab(9.67, 26.07, -39.11)
CIE-LCHlch(9.67, 47.01, 303.68°)
OKLaboklab(23.26% 0.0124 -0.113)
OKLCHoklch(23.26% 0.114 276.2)
XYZxyz(1.9440, 1.0843, 7.8898)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F51 #4C510F
analogous
#0F2B51 #140F51 #350F51
triadic
#140F51 #51140F #0F5114
tetradic
#140F51 #510F2B #4C510F #0F5135
square
#140F51 #510F2B #4C510F #0F5135
split-complementary
#140F51 #51350F #2B510F
monochromatic
#06051A #07051D #140F51 #211985 #2D22B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##140F51#FFFFFF#000000##FFFFFF
##140F511.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)
#001E53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #140f51;
/* rgb */ color: rgb(20, 15, 81);
/* oklch */ color: oklch(23.3% 0.114 276.2);
Tailwind
colors: {
  custom: {
    50: '#5d4e83',
    500: '#140f51',
    950: '#000000',
  },
}
SCSS
$custom: #140f51;
$custom-light: #5d4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#140f51",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 244.545,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23261,
    "c": 0.11372,
    "h": 276.2
  },
  "luminance": 0.01084
}

Semantic roles & 50–950 ramp

primary
#140F51
secondary
#848B31
accent
#EC3CDE
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #140F51

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

Preview Lab → · Contrast checker → · Palette generator →

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