#142152#142152

#142152 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.091 H 268.4°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#142152
RGBrgb(20, 33, 82)
HSLhsl(227, 61%, 20%)
HSVhsv(227, 76%, 32%)
CMYKcmyk(75.6%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.65, 13.63, -31.65)
CIE-LCHlch(14.65, 34.46, 293.30°)
OKLaboklab(26.94% -0.0025 -0.0911)
OKLCHoklch(26.94% 0.091 268.4)
XYZxyz(2.3548, 1.8454, 8.2131)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142152 #524514
analogous
#144052 #142152 #261452
triadic
#142152 #521421 #215214
tetradic
#142152 #521440 #524514 #145226
square
#142152 #521440 #524514 #145226
split-complementary
#142152 #522614 #405214
monochromatic
#060A19 #080D21 #142152 #203583 #2C49B4

Accessibility & contrast

On white

15.34
#142152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#142152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142152
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142152#FFFFFF#000000##FFFFFF
##1421521.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #142152;
/* rgb */ color: rgb(20, 33, 82);
/* oklch */ color: oklch(26.9% 0.091 268.4);
Tailwind
colors: {
  custom: {
    50: '#5b5b83',
    500: '#142152',
    950: '#000000',
  },
}
SCSS
$custom: #142152;
$custom-light: #5b5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#142152",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 227.419,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.26935,
    "c": 0.09112,
    "h": 268.4
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#142152
secondary
#8A7938
accent
#C244E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #142152

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

Preview Lab → · Contrast checker → · Palette generator →

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