#142159#142159

#142159 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.102 H 268.8°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#142159
RGBrgb(20, 33, 89)
HSLhsl(229, 63%, 21%)
HSVhsv(229, 78%, 35%)
CMYKcmyk(77.5%, 62.9%, 0%, 65.1%)
CIE-LABlab(15.26, 16.58, -35.39)
CIE-LCHlch(15.26, 39.08, 295.10°)
OKLaboklab(27.58% -0.0022 -0.1021)
OKLCHoklch(27.58% 0.102 268.8)
XYZxyz(2.6349, 1.9574, 9.6882)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142159 #594C14
analogous
#144459 #142159 #2A1459
triadic
#142159 #591421 #215914
tetradic
#142159 #591444 #594C14 #14592A
square
#142159 #591444 #594C14 #14592A
split-complementary
#142159 #592A14 #445914
monochromatic
#060919 #090E27 #142159 #1F348B #2A46BD

Accessibility & contrast

On white

15.09
#142159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142159
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142159#FFFFFF#000000##FFFFFF
##1421591.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#002F39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #142159;
/* rgb */ color: rgb(20, 33, 89);
/* oklch */ color: oklch(27.6% 0.102 268.8);
Tailwind
colors: {
  custom: {
    50: '#5d5b88',
    500: '#142159',
    950: '#000000',
  },
}
SCSS
$custom: #142159;
$custom-light: #5d5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#142159",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 228.696,
    "s": 63.303,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27583,
    "c": 0.10208,
    "h": 268.8
  },
  "luminance": 0.01958
}

Semantic roles & 50–950 ramp

primary
#142159
secondary
#918038
accent
#C741E6
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #142159

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

Preview Lab → · Contrast checker → · Palette generator →

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