#142872#142872

#142872 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.130 H 266.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#142872
RGBrgb(20, 40, 114)
HSLhsl(227, 70%, 26%)
HSVhsv(227, 82%, 45%)
CMYKcmyk(82.5%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.56, 21.85, -44.79)
CIE-LCHlch(19.56, 49.84, 296.00°)
OKLaboklab(31.49% -0.0073 -0.1296)
OKLCHoklch(31.49% 0.13 266.8)
XYZxyz(4.0835, 2.8807, 16.2571)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142872 #725E14
analogous
#145772 #142872 #2F1472
triadic
#142872 #721428 #287214
tetradic
#142872 #721457 #725E14 #14722F
square
#142872 #721457 #725E14 #14722F
split-complementary
#142872 #722F14 #577214
monochromatic
#05091A #0B163E #142872 #1D3AA6 #274DD9

Accessibility & contrast

On white

13.32
#142872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#142872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142872
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142872#FFFFFF#000000##FFFFFF
##1428721.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #142872;
/* rgb */ color: rgb(20, 40, 114);
/* oklch */ color: oklch(31.5% 0.130 266.8);
Tailwind
colors: {
  custom: {
    50: '#63619b',
    500: '#142872',
    950: '#000000',
  },
}
SCSS
$custom: #142872;
$custom-light: #63619b;
$custom-dark: #000000;
JSON
{
  "hex": "#142872",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 227.234,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31491,
    "c": 0.12976,
    "h": 266.8
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#142872
secondary
#A89139
accent
#C73BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142872

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

Preview Lab → · Contrast checker → · Palette generator →

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