#142157#142157

#142157 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.099 H 268.7°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#142157
RGBrgb(20, 33, 87)
HSLhsl(228, 63%, 21%)
HSVhsv(228, 77%, 34%)
CMYKcmyk(77%, 62.1%, 0%, 65.9%)
CIE-LABlab(15.08, 15.74, -34.33)
CIE-LCHlch(15.08, 37.77, 294.63°)
OKLaboklab(27.39% -0.0023 -0.099)
OKLCHoklch(27.39% 0.099 268.7)
XYZxyz(2.5521, 1.9243, 9.2519)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142157 #574A14
analogous
#144257 #142157 #281457
triadic
#142157 #571421 #215714
tetradic
#142157 #571442 #574A14 #145728
square
#142157 #571442 #574A14 #145728
split-complementary
#142157 #572814 #425714
monochromatic
#060919 #090E25 #142157 #1F3489 #2B47BB

Accessibility & contrast

On white

15.16
#142157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#142157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142157
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142157#FFFFFF#000000##FFFFFF
##1421571.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #142157;
/* rgb */ color: rgb(20, 33, 87);
/* oklch */ color: oklch(27.4% 0.099 268.7);
Tailwind
colors: {
  custom: {
    50: '#5c5b87',
    500: '#142157',
    950: '#000000',
  },
}
SCSS
$custom: #142157;
$custom-light: #5c5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#142157",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 228.358,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27394,
    "c": 0.09899,
    "h": 268.7
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#142157
secondary
#8F7E38
accent
#C642E6
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #142157

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

Preview Lab → · Contrast checker → · Palette generator →

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