#142154#142154

#142154 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.094 H 268.5°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#142154
RGBrgb(20, 33, 84)
HSLhsl(228, 62%, 20%)
HSVhsv(228, 76%, 33%)
CMYKcmyk(76.2%, 60.7%, 0%, 67.1%)
CIE-LABlab(14.82, 14.47, -32.73)
CIE-LCHlch(14.82, 35.79, 293.86°)
OKLaboklab(27.12% -0.0024 -0.0943)
OKLCHoklch(27.12% 0.094 268.5)
XYZxyz(2.4320, 1.8763, 8.6198)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142154 #544714
analogous
#144154 #142154 #271454
triadic
#142154 #541421 #215414
tetradic
#142154 #541441 #544714 #145427
square
#142154 #541441 #544714 #145427
split-complementary
#142154 #542714 #415414
monochromatic
#060A19 #080E23 #142154 #203485 #2C48B7

Accessibility & contrast

On white

15.27
#142154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142154
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142154#FFFFFF#000000##FFFFFF
##1421541.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #142154;
/* rgb */ color: rgb(20, 33, 84);
/* oklch */ color: oklch(27.1% 0.094 268.5);
Tailwind
colors: {
  custom: {
    50: '#5b5b85',
    500: '#142154',
    950: '#000000',
  },
}
SCSS
$custom: #142154;
$custom-light: #5b5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#142154",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 227.813,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27117,
    "c": 0.09429,
    "h": 268.5
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#142154
secondary
#8C7B38
accent
#C443E5
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #142154

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

Preview Lab → · Contrast checker → · Palette generator →

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