#142156#142156

#142156 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.097 H 268.6°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#142156
RGBrgb(20, 33, 86)
HSLhsl(228, 62%, 21%)
HSVhsv(228, 77%, 34%)
CMYKcmyk(76.7%, 61.6%, 0%, 66.3%)
CIE-LABlab(15.00, 15.32, -33.80)
CIE-LCHlch(15.00, 37.11, 294.38°)
OKLaboklab(27.3% -0.0023 -0.0974)
OKLCHoklch(27.3% 0.097 268.6)
XYZxyz(2.5115, 1.9081, 9.0382)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142156 #564914
analogous
#144256 #142156 #281456
triadic
#142156 #561421 #215614
tetradic
#142156 #561442 #564914 #145628
square
#142156 #561442 #564914 #145628
split-complementary
#142156 #562814 #425614
monochromatic
#060A19 #080E24 #142156 #203488 #2B47B9

Accessibility & contrast

On white

15.20
#142156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#142156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142156
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142156#FFFFFF#000000##FFFFFF
##1421561.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #142156;
/* rgb */ color: rgb(20, 33, 86);
/* oklch */ color: oklch(27.3% 0.097 268.6);
Tailwind
colors: {
  custom: {
    50: '#5c5b86',
    500: '#142156',
    950: '#000000',
  },
}
SCSS
$custom: #142156;
$custom-light: #5c5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#142156",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 228.182,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27301,
    "c": 0.09743,
    "h": 268.6
  },
  "luminance": 0.01908
}

Semantic roles & 50–950 ramp

primary
#142156
secondary
#8E7D38
accent
#C542E5
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #142156

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

Preview Lab → · Contrast checker → · Palette generator →

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