#142972#142972

#142972 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.128 H 266.5°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#142972
RGBrgb(20, 41, 114)
HSLhsl(227, 70%, 26%)
HSVhsv(227, 82%, 45%)
CMYKcmyk(82.5%, 64%, 0%, 55.3%)
CIE-LABlab(19.84, 21.13, -44.34)
CIE-LCHlch(19.84, 49.11, 295.48°)
OKLaboklab(31.7% -0.0079 -0.1282)
OKLCHoklch(31.7% 0.128 266.5)
XYZxyz(4.1176, 2.9490, 16.2685)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142972 #725D14
analogous
#145872 #142972 #2E1472
triadic
#142972 #721429 #297214
tetradic
#142972 #721458 #725D14 #14722E
square
#142972 #721458 #725D14 #14722E
split-complementary
#142972 #722E14 #587214
monochromatic
#05091A #0B163E #142972 #1D3CA6 #274FD9

Accessibility & contrast

On white

13.21
#142972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142972
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142972#FFFFFF#000000##FFFFFF
##1429721.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #142972;
/* rgb */ color: rgb(20, 41, 114);
/* oklch */ color: oklch(31.7% 0.128 266.5);
Tailwind
colors: {
  custom: {
    50: '#63629b',
    500: '#142972',
    950: '#000000',
  },
}
SCSS
$custom: #142972;
$custom-light: #63629b;
$custom-dark: #000000;
JSON
{
  "hex": "#142972",
  "rgb": {
    "r": 20,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 226.596,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.12846,
    "h": 266.5
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #142972

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

Preview Lab → · Contrast checker → · Palette generator →

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