#142971#142971

#142971 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.127 H 266.4°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#142971
RGBrgb(20, 41, 113)
HSLhsl(226, 70%, 26%)
HSVhsv(226, 82%, 44%)
CMYKcmyk(82.3%, 63.7%, 0%, 55.7%)
CIE-LABlab(19.75, 20.72, -43.84)
CIE-LCHlch(19.75, 48.49, 295.29°)
OKLaboklab(31.6% -0.008 -0.1268)
OKLCHoklch(31.6% 0.127 266.4)
XYZxyz(4.0610, 2.9264, 15.9704)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142971 #715C14
analogous
#145771 #142971 #2D1471
triadic
#142971 #711429 #297114
tetradic
#142971 #711457 #715C14 #14712D
square
#142971 #711457 #715C14 #14712D
split-complementary
#142971 #712D14 #577114
monochromatic
#05091A #0B163D #142971 #1D3CA5 #274FD9

Accessibility & contrast

On white

13.25
#142971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#142971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142971
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142971#FFFFFF#000000##FFFFFF
##1429711.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003C48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #142971;
/* rgb */ color: rgb(20, 41, 113);
/* oklch */ color: oklch(31.6% 0.127 266.4);
Tailwind
colors: {
  custom: {
    50: '#63629b',
    500: '#142971',
    950: '#000000',
  },
}
SCSS
$custom: #142971;
$custom-light: #63629b;
$custom-dark: #000000;
JSON
{
  "hex": "#142971",
  "rgb": {
    "r": 20,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 226.452,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31601,
    "c": 0.12701,
    "h": 266.4
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#142971
secondary
#A78F39
accent
#C53BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142971

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

Preview Lab → · Contrast checker → · Palette generator →

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