#140F31#140F31

#140F31 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.065 H 285.6°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#140F31
RGBrgb(20, 15, 49)
HSLhsl(249, 53%, 13%)
HSVhsv(249, 69%, 19%)
CMYKcmyk(59.2%, 69.4%, 0%, 80.8%)
CIE-LABlab(6.43, 13.36, -21.66)
CIE-LCHlch(6.43, 25.45, 301.67°)
OKLaboklab(19.81% 0.0174 -0.0625)
OKLCHoklch(19.81% 0.065 285.6)
XYZxyz(1.0135, 0.7121, 2.9892)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F31 #2C310F
analogous
#0F1B31 #140F31 #250F31
triadic
#140F31 #31140F #0F3114
tetradic
#140F31 #310F1B #2C310F #0F3125
square
#140F31 #310F1B #2C310F #0F3125
split-complementary
#140F31 #31250F #1B310F
monochromatic
#0A0717 #0A0717 #140F31 #271D60 #3A2C8F

Accessibility & contrast

On white

18.38
#140F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#140F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #140F31
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F31#FFFFFF#000000##FFFFFF
##140F311.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#001330
Tritanopia (blue-blind)
#0A171E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #140f31;
/* rgb */ color: rgb(20, 15, 49);
/* oklch */ color: oklch(19.8% 0.065 285.6);
Tailwind
colors: {
  custom: {
    50: '#544d69',
    500: '#140f31',
    950: '#000000',
  },
}
SCSS
$custom: #140f31;
$custom-light: #544d69;
$custom-dark: #000000;
JSON
{
  "hex": "#140f31",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 248.824,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19812,
    "c": 0.06485,
    "h": 285.6
  },
  "luminance": 0.00712
}

Semantic roles & 50–950 ramp

primary
#140F31
secondary
#626B31
accent
#DD4BC7
background
#F5F4F6
surface
#E8E7EB
border
#C4C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #140F31

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

Preview Lab → · Contrast checker → · Palette generator →

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