#140F48#140F48

#140F48 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.101 H 278.2°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#140F48
RGBrgb(20, 15, 72)
HSLhsl(245, 66%, 17%)
HSVhsv(245, 79%, 28%)
CMYKcmyk(72.2%, 79.2%, 0%, 71.8%)
CIE-LABlab(8.64, 22.71, -34.58)
CIE-LCHlch(8.64, 41.37, 303.29°)
OKLaboklab(22.21% 0.0144 -0.0998)
OKLCHoklch(22.21% 0.101 278.2)
XYZxyz(1.6286, 0.9581, 6.2287)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F48 #43480F
analogous
#0F2748 #140F48 #310F48
triadic
#140F48 #48140F #0F4814
tetradic
#140F48 #480F27 #43480F #0F4831
square
#140F48 #480F27 #43480F #0F4831
split-complementary
#140F48 #48310F #27480F
monochromatic
#070519 #070519 #140F48 #221A7B #3024AD

Accessibility & contrast

On white

17.62
#140F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#140F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F48
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F48#FFFFFF#000000##FFFFFF
##140F481.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001647
Tritanopia (blue-blind)
#001F2A
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #140f48;
/* rgb */ color: rgb(20, 15, 72);
/* oklch */ color: oklch(22.2% 0.101 278.2);
Tailwind
colors: {
  custom: {
    50: '#5a4e7c',
    500: '#140f48',
    950: '#000000',
  },
}
SCSS
$custom: #140f48;
$custom-light: #5a4e7c;
$custom-dark: #000000;
JSON
{
  "hex": "#140f48",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 245.263,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22213,
    "c": 0.10087,
    "h": 278.2
  },
  "luminance": 0.00958
}

Semantic roles & 50–950 ramp

primary
#140F48
secondary
#7B8230
accent
#E83FDA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #140F48

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

Preview Lab → · Contrast checker → · Palette generator →

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