#142271#142271

#142271 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.136 H 268.5°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#142271
RGBrgb(20, 34, 113)
HSLhsl(231, 70%, 26%)
HSVhsv(231, 82%, 44%)
CMYKcmyk(82.3%, 69.9%, 0%, 55.7%)
CIE-LABlab(17.85, 25.67, -46.95)
CIE-LCHlch(17.85, 53.51, 298.67°)
OKLaboklab(30.2% -0.0036 -0.1359)
OKLCHoklch(30.2% 0.136 268.5)
XYZxyz(3.8401, 2.4846, 15.8968)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142271 #716314
analogous
#145071 #142271 #341471
triadic
#142271 #711422 #227114
tetradic
#142271 #711450 #716314 #147134
square
#142271 #711450 #716314 #147134
split-complementary
#142271 #713414 #507114
monochromatic
#05081A #0B123D #142271 #1D32A5 #2741D9

Accessibility & contrast

On white

14.03
#142271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#142271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142271
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142271#FFFFFF#000000##FFFFFF
##1422711.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142271;
/* rgb */ color: rgb(20, 34, 113);
/* oklch */ color: oklch(30.2% 0.136 268.5);
Tailwind
colors: {
  custom: {
    50: '#645d9b',
    500: '#142271',
    950: '#000000',
  },
}
SCSS
$custom: #142271;
$custom-light: #645d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#142271",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 230.968,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30203,
    "c": 0.13599,
    "h": 268.5
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

primary
#142271
secondary
#A79739
accent
#D23BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #142271

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

Preview Lab → · Contrast checker → · Palette generator →

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