#142142#142142

#142142 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.065 H 265.8°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#142142
RGBrgb(20, 33, 66)
HSLhsl(223, 53%, 17%)
HSVhsv(223, 70%, 26%)
CMYKcmyk(69.7%, 50%, 0%, 74.1%)
CIE-LABlab(13.41, 6.89, -22.65)
CIE-LCHlch(13.41, 23.67, 286.92°)
OKLaboklab(25.59% -0.0047 -0.0646)
OKLCHoklch(25.59% 0.065 265.8)
XYZxyz(1.8154, 1.6296, 5.3721)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142142 #423514
analogous
#143842 #142142 #1E1442
triadic
#142142 #421421 #214214
tetradic
#142142 #421438 #423514 #14421E
square
#142142 #421438 #423514 #14421E
split-complementary
#142142 #421E14 #384214
monochromatic
#070C17 #070C17 #142142 #223871 #3050A0

Accessibility & contrast

On white

15.84
#142142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#142142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142142
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142142#FFFFFF#000000##FFFFFF
##1421421.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122543
Deuteranopia (green-blind)
#0B2041
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #142142;
/* rgb */ color: rgb(20, 33, 66);
/* oklch */ color: oklch(25.6% 0.065 265.8);
Tailwind
colors: {
  custom: {
    50: '#575b76',
    500: '#142142',
    950: '#000000',
  },
}
SCSS
$custom: #142142;
$custom-light: #575b76;
$custom-dark: #000000;
JSON
{
  "hex": "#142142",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 223.043,
    "s": 53.488,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25592,
    "c": 0.06477,
    "h": 265.8
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#142142
secondary
#7A6738
accent
#B44BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #142142

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

Preview Lab → · Contrast checker → · Palette generator →

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