#142140#142140

#142140 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.061 H 265.2°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#142140
RGBrgb(20, 33, 64)
HSLhsl(222, 52%, 16%)
HSVhsv(222, 69%, 25%)
CMYKcmyk(68.8%, 48.4%, 0%, 74.9%)
CIE-LABlab(13.27, 6.05, -21.47)
CIE-LCHlch(13.27, 22.31, 285.74°)
OKLaboklab(25.44% -0.0051 -0.0611)
OKLCHoklch(25.44% 0.061 265.2)
XYZxyz(1.7574, 1.6065, 5.0670)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142140 #403314
analogous
#143740 #142140 #1D1440
triadic
#142140 #401421 #214014
tetradic
#142140 #401437 #403314 #14401D
square
#142140 #401437 #403314 #14401D
split-complementary
#142140 #401D14 #374014
monochromatic
#070C17 #070C17 #142140 #23396F #31519D

Accessibility & contrast

On white

15.89
#142140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#142140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142140
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142140#FFFFFF#000000##FFFFFF
##1421401.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#0D203F
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #142140;
/* rgb */ color: rgb(20, 33, 64);
/* oklch */ color: oklch(25.4% 0.061 265.2);
Tailwind
colors: {
  custom: {
    50: '#565b75',
    500: '#142140',
    950: '#000000',
  },
}
SCSS
$custom: #142140;
$custom-light: #565b75;
$custom-dark: #000000;
JSON
{
  "hex": "#142140",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 222.273,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25439,
    "c": 0.06137,
    "h": 265.2
  },
  "luminance": 0.01607
}

Semantic roles & 50–950 ramp

primary
#142140
secondary
#786538
accent
#B14CDC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #142140

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

Preview Lab → · Contrast checker → · Palette generator →

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