#142171#142171

#142171 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.137 H 268.7°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#142171
RGBrgb(20, 33, 113)
HSLhsl(232, 70%, 26%)
HSVhsv(232, 82%, 44%)
CMYKcmyk(82.3%, 70.8%, 0%, 55.7%)
CIE-LABlab(17.59, 26.36, -47.38)
CIE-LCHlch(17.59, 54.22, 299.09°)
OKLaboklab(30.01% -0.0031 -0.1372)
OKLCHoklch(30.01% 0.137 268.7)
XYZxyz(3.8120, 2.4283, 15.8874)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142171 #716414
analogous
#144F71 #142171 #351471
triadic
#142171 #711421 #217114
tetradic
#142171 #71144F #716414 #147135
square
#142171 #71144F #716414 #147135
split-complementary
#142171 #713514 #4F7114
monochromatic
#05081A #0B123D #142171 #1D30A5 #2740D9

Accessibility & contrast

On white

14.13
#142171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#142171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142171
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142171#FFFFFF#000000##FFFFFF
##1421711.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #142171;
/* rgb */ color: rgb(20, 33, 113);
/* oklch */ color: oklch(30.0% 0.137 268.7);
Tailwind
colors: {
  custom: {
    50: '#645c9b',
    500: '#142171',
    950: '#000000',
  },
}
SCSS
$custom: #142171;
$custom-light: #645c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#142171",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 231.613,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30015,
    "c": 0.13721,
    "h": 268.7
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#142171
secondary
#A79839
accent
#D43BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #142171

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

Preview Lab → · Contrast checker → · Palette generator →

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