#142871#142871

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

Color values

HEX#142871
RGBrgb(20, 40, 113)
HSLhsl(227, 70%, 26%)
HSVhsv(227, 82%, 44%)
CMYKcmyk(82.3%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.47, 21.43, -44.30)
CIE-LCHlch(19.47, 49.21, 295.82°)
OKLaboklab(31.39% -0.0073 -0.1281)
OKLCHoklch(31.39% 0.128 266.7)
XYZxyz(4.0269, 2.8581, 15.9590)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142871 #715D14
analogous
#145671 #142871 #2E1471
triadic
#142871 #711428 #287114
tetradic
#142871 #711456 #715D14 #14712E
square
#142871 #711456 #715D14 #14712E
split-complementary
#142871 #712E14 #567114
monochromatic
#05091A #0B163D #142871 #1D3AA5 #274DD9

Accessibility & contrast

On white

13.36
#142871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#142871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142871
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142871#FFFFFF#000000##FFFFFF
##1428711.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #142871;
/* rgb */ color: rgb(20, 40, 113);
/* oklch */ color: oklch(31.4% 0.128 266.7);
Tailwind
colors: {
  custom: {
    50: '#63619b',
    500: '#142871',
    950: '#000000',
  },
}
SCSS
$custom: #142871;
$custom-light: #63619b;
$custom-dark: #000000;
JSON
{
  "hex": "#142871",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 227.097,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31393,
    "c": 0.12833,
    "h": 266.7
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #142871

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

Preview Lab → · Contrast checker → · Palette generator →

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