#142A4F#142A4F

#142A4F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.9% C 0.073 H 260.2°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#142A4F
RGBrgb(20, 42, 79)
HSLhsl(218, 60%, 19%)
HSVhsv(218, 75%, 31%)
CMYKcmyk(74.7%, 46.8%, 0%, 69%)
CIE-LABlab(17.32, 5.64, -25.34)
CIE-LCHlch(17.32, 25.96, 282.54°)
OKLaboklab(28.89% -0.0125 -0.0723)
OKLCHoklch(28.89% 0.073 260.2)
XYZxyz(2.5272, 2.3689, 7.7197)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A4F #4F3914
analogous
#14484F #142A4F #1C144F
triadic
#142A4F #4F142A #2A4F14
tetradic
#142A4F #4F1448 #4F3914 #144F1C
square
#142A4F #4F1448 #4F3914 #144F1C
split-complementary
#142A4F #4F1C14 #484F14
monochromatic
#060D18 #08101E #142A4F #204480 #2D5EB1

Accessibility & contrast

On white

14.25
#142A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142A4F
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A4F#FFFFFF#000000##FFFFFF
##142A4F1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D50
Deuteranopia (green-blind)
#0F284E
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #142a4f;
/* rgb */ color: rgb(20, 42, 79);
/* oklch */ color: oklch(28.9% 0.073 260.2);
Tailwind
colors: {
  custom: {
    50: '#5a6380',
    500: '#142a4f',
    950: '#000000',
  },
}
SCSS
$custom: #142a4f;
$custom-light: #5a6380;
$custom-dark: #000000;
JSON
{
  "hex": "#142a4f",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 217.627,
    "s": 59.596,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28893,
    "c": 0.07343,
    "h": 260.2
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#142A4F
secondary
#876A38
accent
#A845E3
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #142A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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