#142240#142240

#142240 is a dark, muted blue. Relative luminance 0.017; OKLCH L 25.7% C 0.060 H 263.8°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#142240
RGBrgb(20, 34, 64)
HSLhsl(221, 52%, 16%)
HSVhsv(221, 69%, 25%)
CMYKcmyk(68.8%, 46.9%, 0%, 74.9%)
CIE-LABlab(13.61, 5.30, -20.93)
CIE-LCHlch(13.61, 21.59, 284.20°)
OKLaboklab(25.7% -0.0064 -0.0596)
OKLCHoklch(25.7% 0.06 263.8)
XYZxyz(1.7856, 1.6628, 5.0763)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142240 #403214
analogous
#143840 #142240 #1C1440
triadic
#142240 #401422 #224014
tetradic
#142240 #401438 #403214 #14401C
square
#142240 #401438 #403214 #14401C
split-complementary
#142240 #401C14 #384014
monochromatic
#070C17 #070C17 #142240 #233B6F #31549D

Accessibility & contrast

On white

15.76
#142240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#142240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142240
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142240#FFFFFF#000000##FFFFFF
##1422401.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#00292D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #142240;
/* rgb */ color: rgb(20, 34, 64);
/* oklch */ color: oklch(25.7% 0.060 263.8);
Tailwind
colors: {
  custom: {
    50: '#565c75',
    500: '#142240',
    950: '#000000',
  },
}
SCSS
$custom: #142240;
$custom-light: #565c75;
$custom-dark: #000000;
JSON
{
  "hex": "#142240",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 220.909,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25699,
    "c": 0.05991,
    "h": 263.8
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#142240
secondary
#786438
accent
#AE4CDC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #142240

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

Preview Lab → · Contrast checker → · Palette generator →

#142240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva