#140F3F#140F3F

#140F3F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.2% C 0.087 H 280.6°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#140F3F
RGBrgb(20, 15, 63)
HSLhsl(246, 62%, 15%)
HSVhsv(246, 76%, 25%)
CMYKcmyk(68.3%, 76.2%, 0%, 75.3%)
CIE-LABlab(7.67, 19.24, -29.81)
CIE-LCHlch(7.67, 35.48, 302.84°)
OKLaboklab(21.22% 0.0161 -0.0859)
OKLCHoklch(21.22% 0.087 280.6)
XYZxyz(1.3562, 0.8492, 4.7941)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#140F3F #3A3F0F
analogous
#0F223F #140F3F #2C0F3F
triadic
#140F3F #3F140F #0F3F14
tetradic
#140F3F #3F0F22 #3A3F0F #0F3F2C
square
#140F3F #3F0F22 #3A3F0F #0F3F2C
split-complementary
#140F3F #3F2C0F #223F0F
monochromatic
#080619 #080619 #140F3F #241B70 #3327A2

Accessibility & contrast

On white

17.95
#140F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #140F3F
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##140F3F#FFFFFF#000000##FFFFFF
##140F3F1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #140f3f;
/* rgb */ color: rgb(20, 15, 63);
/* oklch */ color: oklch(21.2% 0.087 280.6);
Tailwind
colors: {
  custom: {
    50: '#584d75',
    500: '#140f3f',
    950: '#000000',
  },
}
SCSS
$custom: #140f3f;
$custom-light: #584d75;
$custom-dark: #000000;
JSON
{
  "hex": "#140f3f",
  "rgb": {
    "r": 20,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 246.25,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21218,
    "c": 0.08738,
    "h": 280.6
  },
  "luminance": 0.00849
}

Semantic roles & 50–950 ramp

primary
#140F3F
secondary
#727930
accent
#E543D4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #140F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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