#142873#142873

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

Color values

HEX#142873
RGBrgb(20, 40, 115)
HSLhsl(227, 70%, 26%)
HSVhsv(227, 83%, 45%)
CMYKcmyk(82.6%, 65.2%, 0%, 54.9%)
CIE-LABlab(19.65, 22.25, -45.28)
CIE-LCHlch(19.65, 50.46, 296.17°)
OKLaboklab(31.59% -0.0073 -0.131)
OKLCHoklch(31.59% 0.131 266.8)
XYZxyz(4.1407, 2.9036, 16.5586)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142873 #735F14
analogous
#145873 #142873 #301473
triadic
#142873 #731428 #287314
tetradic
#142873 #731458 #735F14 #147330
square
#142873 #731458 #735F14 #147330
split-complementary
#142873 #733014 #587314
monochromatic
#05091A #0B163F #142873 #1D3AA7 #284DDA

Accessibility & contrast

On white

13.28
#142873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142873
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142873#FFFFFF#000000##FFFFFF
##1428731.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142873;
/* rgb */ color: rgb(20, 40, 115);
/* oklch */ color: oklch(31.6% 0.131 266.8);
Tailwind
colors: {
  custom: {
    50: '#63619c',
    500: '#142873',
    950: '#000000',
  },
}
SCSS
$custom: #142873;
$custom-light: #63619c;
$custom-dark: #000000;
JSON
{
  "hex": "#142873",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 227.368,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3159,
    "c": 0.1312,
    "h": 266.8
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#142873
secondary
#A9923A
accent
#C83BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142873

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

Preview Lab → · Contrast checker → · Palette generator →

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