#142A4C#142A4C

#142A4C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.7% C 0.069 H 258.8°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#142A4C
RGBrgb(20, 42, 76)
HSLhsl(216, 58%, 19%)
HSVhsv(216, 74%, 30%)
CMYKcmyk(73.7%, 44.7%, 0%, 70.2%)
CIE-LABlab(17.11, 4.37, -23.62)
CIE-LCHlch(17.11, 24.03, 280.49°)
OKLaboklab(28.67% -0.0133 -0.0673)
OKLCHoklch(28.67% 0.069 258.8)
XYZxyz(2.4205, 2.3262, 7.1575)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A4C #4C3614
analogous
#14464C #142A4C #1A144C
triadic
#142A4C #4C142A #2A4C14
tetradic
#142A4C #4C1446 #4C3614 #144C1A
square
#142A4C #4C1446 #4C3614 #144C1A
split-complementary
#142A4C #4C1A14 #464C14
monochromatic
#060D18 #070F1C #142A4C #21457C #2E60AD

Accessibility & contrast

On white

14.33
#142A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#142A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A4C
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A4C#FFFFFF#000000##FFFFFF
##142A4C1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4D
Deuteranopia (green-blind)
#12284B
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #142a4c;
/* rgb */ color: rgb(20, 42, 76);
/* oklch */ color: oklch(28.7% 0.069 258.8);
Tailwind
colors: {
  custom: {
    50: '#59637e',
    500: '#142a4c',
    950: '#000000',
  },
}
SCSS
$custom: #142a4c;
$custom-light: #59637e;
$custom-dark: #000000;
JSON
{
  "hex": "#142a4c",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 76
  },
  "hsl": {
    "h": 216.429,
    "s": 58.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28672,
    "c": 0.06862,
    "h": 258.8
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#142A4C
secondary
#846638
accent
#A546E2
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #142A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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