#142A51#142A51

#142A51 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.077 H 260.9°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#142A51
RGBrgb(20, 42, 81)
HSLhsl(218, 60%, 20%)
HSVhsv(218, 75%, 32%)
CMYKcmyk(75.3%, 48.1%, 0%, 68.2%)
CIE-LABlab(17.45, 6.48, -26.47)
CIE-LCHlch(17.45, 27.25, 283.76°)
OKLaboklab(29.04% -0.0121 -0.0757)
OKLCHoklch(29.04% 0.077 260.9)
XYZxyz(2.6011, 2.3985, 8.1089)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A51 #513B14
analogous
#144851 #142A51 #1D1451
triadic
#142A51 #51142A #2A5114
tetradic
#142A51 #511448 #513B14 #14511D
square
#142A51 #511448 #513B14 #14511D
split-complementary
#142A51 #511D14 #485114
monochromatic
#060D19 #081120 #142A51 #204382 #2C5DB3

Accessibility & contrast

On white

14.19
#142A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142A51
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A51#FFFFFF#000000##FFFFFF
##142A511.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E52
Deuteranopia (green-blind)
#0C2850
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #142a51;
/* rgb */ color: rgb(20, 42, 81);
/* oklch */ color: oklch(29.0% 0.077 260.9);
Tailwind
colors: {
  custom: {
    50: '#5a6382',
    500: '#142a51',
    950: '#000000',
  },
}
SCSS
$custom: #142a51;
$custom-light: #5a6382;
$custom-dark: #000000;
JSON
{
  "hex": "#142a51",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 81
  },
  "hsl": {
    "h": 218.361,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29044,
    "c": 0.07663,
    "h": 260.9
  },
  "luminance": 0.02399
}

Semantic roles & 50–950 ramp

primary
#142A51
secondary
#896C38
accent
#AA44E4
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #142A51

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

Preview Lab → · Contrast checker → · Palette generator →

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