#142852#142852

#142852 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.081 H 263.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#142852
RGBrgb(20, 40, 82)
HSLhsl(221, 61%, 20%)
HSVhsv(221, 76%, 32%)
CMYKcmyk(75.6%, 51.2%, 0%, 67.8%)
CIE-LABlab(16.87, 8.39, -28.08)
CIE-LCHlch(16.87, 29.30, 286.63°)
OKLaboklab(28.62% -0.0097 -0.0804)
OKLCHoklch(28.62% 0.081 263.1)
XYZxyz(2.5697, 2.2752, 8.2847)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142852 #523E14
analogous
#144752 #142852 #1F1452
triadic
#142852 #521428 #285214
tetradic
#142852 #521447 #523E14 #14521F
square
#142852 #521447 #523E14 #14521F
split-complementary
#142852 #521F14 #475214
monochromatic
#060C19 #081021 #142852 #204083 #2C58B4

Accessibility & contrast

On white

14.43
#142852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#142852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142852
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142852#FFFFFF#000000##FFFFFF
##1428521.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D54
Deuteranopia (green-blind)
#052751
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #142852;
/* rgb */ color: rgb(20, 40, 82);
/* oklch */ color: oklch(28.6% 0.081 263.1);
Tailwind
colors: {
  custom: {
    50: '#5a6183',
    500: '#142852',
    950: '#000000',
  },
}
SCSS
$custom: #142852;
$custom-light: #5a6183;
$custom-dark: #000000;
JSON
{
  "hex": "#142852",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 220.645,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.28619,
    "c": 0.08103,
    "h": 263.1
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#142852
secondary
#8A7038
accent
#B044E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #142852

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

Preview Lab → · Contrast checker → · Palette generator →

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