#142857#142857

#142857 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.089 H 264.2°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#142857
RGBrgb(20, 40, 87)
HSLhsl(222, 63%, 21%)
HSVhsv(222, 77%, 34%)
CMYKcmyk(77%, 54%, 0%, 65.9%)
CIE-LABlab(17.25, 10.51, -30.83)
CIE-LCHlch(17.25, 32.58, 288.83°)
OKLaboklab(29.03% -0.0089 -0.0885)
OKLCHoklch(29.03% 0.089 264.2)
XYZxyz(2.7670, 2.3541, 9.3235)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142857 #574314
analogous
#144957 #142857 #211457
triadic
#142857 #571428 #285714
tetradic
#142857 #571449 #574314 #145721
square
#142857 #571449 #574314 #145721
split-complementary
#142857 #572114 #495714
monochromatic
#060B19 #091125 #142857 #1F3F89 #2B56BB

Accessibility & contrast

On white

14.28
#142857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#142857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142857
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142857#FFFFFF#000000##FFFFFF
##1428571.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E59
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #142857;
/* rgb */ color: rgb(20, 40, 87);
/* oklch */ color: oklch(29.0% 0.089 264.2);
Tailwind
colors: {
  custom: {
    50: '#5c6187',
    500: '#142857',
    950: '#000000',
  },
}
SCSS
$custom: #142857;
$custom-light: #5c6187;
$custom-dark: #000000;
JSON
{
  "hex": "#142857",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 222.09,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29027,
    "c": 0.089,
    "h": 264.2
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#142857
secondary
#8F7538
accent
#B542E6
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #142857

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

Preview Lab → · Contrast checker → · Palette generator →

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