#140F41#140F41

#140F41 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.090 H 280.0°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#140F41
RGBrgb(20, 15, 65)
HSLhsl(246, 63%, 16%)
HSVhsv(246, 77%, 25%)
CMYKcmyk(69.2%, 76.9%, 0%, 74.5%)
CIE-LABlab(7.88, 20.03, -30.90)
CIE-LCHlch(7.88, 36.83, 302.96°)
OKLaboklab(21.43% 0.0158 -0.089)
OKLCHoklch(21.43% 0.09 280)
XYZxyz(1.4131, 0.8719, 5.0938)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F41 #3C410F
analogous
#0F2341 #140F41 #2D0F41
triadic
#140F41 #41140F #0F4114
tetradic
#140F41 #410F23 #3C410F #0F412D
square
#140F41 #410F23 #3C410F #0F412D
split-complementary
#140F41 #412D0F #23410F
monochromatic
#080619 #080619 #140F41 #231A73 #3326A4

Accessibility & contrast

On white

17.88
#140F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F41
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F41#FFFFFF#000000##FFFFFF
##140F411.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#001C26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140f41;
/* rgb */ color: rgb(20, 15, 65);
/* oklch */ color: oklch(21.4% 0.090 280.0);
Tailwind
colors: {
  custom: {
    50: '#584d76',
    500: '#140f41',
    950: '#000000',
  },
}
SCSS
$custom: #140f41;
$custom-light: #584d76;
$custom-dark: #000000;
JSON
{
  "hex": "#140f41",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 246,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21433,
    "c": 0.09044,
    "h": 280
  },
  "luminance": 0.00872
}

Semantic roles & 50–950 ramp

primary
#140F41
secondary
#747B30
accent
#E642D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140F41

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

Preview Lab → · Contrast checker → · Palette generator →

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