#140F38#140F38

#140F38 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.076 H 282.9°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#140F38
RGBrgb(20, 15, 56)
HSLhsl(247, 58%, 14%)
HSVhsv(247, 73%, 22%)
CMYKcmyk(64.3%, 73.2%, 0%, 78%)
CIE-LABlab(7.01, 16.37, -25.85)
CIE-LCHlch(7.01, 30.60, 302.34°)
OKLaboklab(20.49% 0.017 -0.0745)
OKLCHoklch(20.49% 0.076 282.9)
XYZxyz(1.1729, 0.7758, 3.8286)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F38 #33380F
analogous
#0F1F38 #140F38 #290F38
triadic
#140F38 #38140F #0F3814
tetradic
#140F38 #380F1F #33380F #0F3829
square
#140F38 #380F1F #33380F #0F3829
split-complementary
#140F38 #38290F #1F380F
monochromatic
#090618 #090618 #140F38 #251C68 #362999

Accessibility & contrast

On white

18.18
#140F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#140F38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F38
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F38#FFFFFF#000000##FFFFFF
##140F381.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#041921
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #140f38;
/* rgb */ color: rgb(20, 15, 56);
/* oklch */ color: oklch(20.5% 0.076 282.9);
Tailwind
colors: {
  custom: {
    50: '#564d6f',
    500: '#140f38',
    950: '#000000',
  },
}
SCSS
$custom: #140f38;
$custom-light: #564d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#140f38",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 56
  },
  "hsl": {
    "h": 247.317,
    "s": 57.746,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2049,
    "c": 0.07638,
    "h": 282.9
  },
  "luminance": 0.00776
}

Semantic roles & 50–950 ramp

primary
#140F38
secondary
#6A7230
accent
#E147CE
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #140F38

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

Preview Lab → · Contrast checker → · Palette generator →

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