#142A52#142A52

#142A52 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.078 H 261.3°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#142A52
RGBrgb(20, 42, 82)
HSLhsl(219, 61%, 20%)
HSVhsv(219, 76%, 32%)
CMYKcmyk(75.6%, 48.8%, 0%, 67.8%)
CIE-LABlab(17.52, 6.91, -27.03)
CIE-LCHlch(17.52, 27.90, 284.33°)
OKLaboklab(29.12% -0.0119 -0.0773)
OKLCHoklch(29.12% 0.078 261.3)
XYZxyz(2.6389, 2.4136, 8.3078)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A52 #523C14
analogous
#144952 #142A52 #1D1452
triadic
#142A52 #52142A #2A5214
tetradic
#142A52 #521449 #523C14 #14521D
square
#142A52 #521449 #523C14 #14521D
split-complementary
#142A52 #521D14 #495214
monochromatic
#060D19 #081121 #142A52 #204383 #2C5CB4

Accessibility & contrast

On white

14.16
#142A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#142A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A52
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A52#FFFFFF#000000##FFFFFF
##142A521.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E54
Deuteranopia (green-blind)
#0B2851
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #142a52;
/* rgb */ color: rgb(20, 42, 82);
/* oklch */ color: oklch(29.1% 0.078 261.3);
Tailwind
colors: {
  custom: {
    50: '#5a6383',
    500: '#142a52',
    950: '#000000',
  },
}
SCSS
$custom: #142a52;
$custom-light: #5a6383;
$custom-dark: #000000;
JSON
{
  "hex": "#142a52",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 218.71,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.29121,
    "c": 0.07823,
    "h": 261.3
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#142A52
secondary
#8A6D38
accent
#AB44E4
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #142A52

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

Preview Lab → · Contrast checker → · Palette generator →

#142A52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva