#140E4C#140E4C

#140E4C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.108 H 277.6°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#140E4C
RGBrgb(20, 14, 76)
HSLhsl(246, 69%, 18%)
HSVhsv(246, 82%, 30%)
CMYKcmyk(73.7%, 81.6%, 0%, 70.2%)
CIE-LABlab(8.86, 24.86, -37.00)
CIE-LCHlch(8.86, 44.58, 303.89°)
OKLaboklab(22.51% 0.0143 -0.1069)
OKLCHoklch(22.51% 0.108 277.6)
XYZxyz(1.7496, 0.9845, 6.9339)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140E4C #464C0E
analogous
#0E274C #140E4C #330E4C
triadic
#140E4C #4C140E #0E4C14
tetradic
#140E4C #4C0E27 #464C0E #0E4C33
square
#140E4C #4C0E27 #464C0E #0E4C33
split-complementary
#140E4C #4C330E #274C0E
monochromatic
#07051A #07051A #140E4C #221880 #2F21B3

Accessibility & contrast

On white

17.54
#140E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#140E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140E4C
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140E4C#FFFFFF#000000##FFFFFF
##140E4C1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140e4c;
/* rgb */ color: rgb(20, 14, 76);
/* oklch */ color: oklch(22.5% 0.108 277.6);
Tailwind
colors: {
  custom: {
    50: '#5b4d7f',
    500: '#140e4c',
    950: '#000000',
  },
}
SCSS
$custom: #140e4c;
$custom-light: #5b4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#140e4c",
  "rgb": {
    "r": 20,
    "g": 14,
    "b": 76
  },
  "hsl": {
    "h": 245.806,
    "s": 68.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2251,
    "c": 0.10784,
    "h": 277.6
  },
  "luminance": 0.00985
}

Semantic roles & 50–950 ramp

primary
#140E4C
secondary
#7E872F
accent
#EC3CDB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #140E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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