#140C45#140C45

#140C45 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.4% C 0.100 H 280.1°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#140C45
RGBrgb(20, 12, 69)
HSLhsl(248, 70%, 16%)
HSVhsv(248, 83%, 27%)
CMYKcmyk(71%, 82.6%, 0%, 72.9%)
CIE-LABlab(7.60, 23.53, -34.19)
CIE-LCHlch(7.60, 41.50, 304.53°)
OKLaboklab(21.37% 0.0175 -0.0987)
OKLCHoklch(21.37% 0.1 280.1)
XYZxyz(1.4938, 0.8412, 5.7127)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140C45 #3D450C
analogous
#0C2045 #140C45 #300C45
triadic
#140C45 #45140C #0C4514
tetradic
#140C45 #450C20 #3D450C #0C4530
square
#140C45 #450C20 #3D450C #0C4530
split-complementary
#140C45 #45300C #20450C
monochromatic
#08051A #08051A #140C45 #231579 #321EAD

Accessibility & contrast

On white

17.98
#140C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#140C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140C45
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140C45#FFFFFF#000000##FFFFFF
##140C451.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001947
Deuteranopia (green-blind)
#001544
Tritanopia (blue-blind)
#001C27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140c45;
/* rgb */ color: rgb(20, 12, 69);
/* oklch */ color: oklch(21.4% 0.100 280.1);
Tailwind
colors: {
  custom: {
    50: '#5a4c79',
    500: '#140c45',
    950: '#000000',
  },
}
SCSS
$custom: #140c45;
$custom-light: #5a4c79;
$custom-dark: #000000;
JSON
{
  "hex": "#140c45",
  "rgb": {
    "r": 20,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 248.421,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21366,
    "c": 0.10022,
    "h": 280.1
  },
  "luminance": 0.00841
}

Semantic roles & 50–950 ramp

primary
#140C45
secondary
#75812C
accent
#ED3BD4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #140C45

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

Preview Lab → · Contrast checker → · Palette generator →

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