#140E51#140E51

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

Color values

HEX#140E51
RGBrgb(20, 14, 81)
HSLhsl(245, 71%, 19%)
HSVhsv(245, 83%, 32%)
CMYKcmyk(75.3%, 82.7%, 0%, 68.2%)
CIE-LABlab(9.46, 26.69, -39.48)
CIE-LCHlch(9.46, 47.65, 304.07°)
OKLaboklab(23.11% 0.013 -0.1141)
OKLCHoklch(23.11% 0.115 276.5)
XYZxyz(1.9302, 1.0567, 7.8852)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140E51 #4B510E
analogous
#0E2951 #140E51 #350E51
triadic
#140E51 #51140E #0E5114
tetradic
#140E51 #510E29 #4B510E #0E5135
square
#140E51 #510E29 #4B510E #0E5135
split-complementary
#140E51 #51350E #29510E
monochromatic
#06051A #07051D #140E51 #211785 #2E20B9

Accessibility & contrast

On white

17.34
#140E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140E51
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140E51#FFFFFF#000000##FFFFFF
##140E511.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #140e51;
/* rgb */ color: rgb(20, 14, 81);
/* oklch */ color: oklch(23.1% 0.115 276.5);
Tailwind
colors: {
  custom: {
    50: '#5d4e83',
    500: '#140e51',
    950: '#000000',
  },
}
SCSS
$custom: #140e51;
$custom-light: #5d4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#140e51",
  "rgb": {
    "r": 20,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 245.373,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23106,
    "c": 0.11483,
    "h": 276.5
  },
  "luminance": 0.01057
}

Semantic roles & 50–950 ramp

primary
#140E51
secondary
#838C2F
accent
#ED3ADD
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #140E51

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

Preview Lab → · Contrast checker → · Palette generator →

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