#142F5A#142F5A

#142F5A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.084 H 259.4°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#142F5A
RGBrgb(20, 47, 90)
HSLhsl(217, 64%, 22%)
HSVhsv(217, 78%, 35%)
CMYKcmyk(77.8%, 47.8%, 0%, 64.7%)
CIE-LABlab(19.72, 6.64, -28.86)
CIE-LCHlch(19.72, 29.61, 282.96°)
OKLaboklab(31% -0.0155 -0.0826)
OKLCHoklch(31% 0.084 259.4)
XYZxyz(3.1498, 2.9196, 10.0684)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F5A #5A3F14
analogous
#14525A #142F5A #1C145A
triadic
#142F5A #5A142F #2F5A14
tetradic
#142F5A #5A1452 #5A3F14 #145A1C
square
#142F5A #5A1452 #5A3F14 #145A1C
split-complementary
#142F5A #5A1C14 #525A14
monochromatic
#060D19 #091528 #142F5A #1F498C #2A63BE

Accessibility & contrast

On white

13.26
#142F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#142F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F5A
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F5A#FFFFFF#000000##FFFFFF
##142F5A1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A335C
Deuteranopia (green-blind)
#0C2D59
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #142f5a;
/* rgb */ color: rgb(20, 47, 90);
/* oklch */ color: oklch(31.0% 0.084 259.4);
Tailwind
colors: {
  custom: {
    50: '#5c6789',
    500: '#142f5a',
    950: '#000000',
  },
}
SCSS
$custom: #142f5a;
$custom-light: #5c6789;
$custom-dark: #000000;
JSON
{
  "hex": "#142f5a",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 90
  },
  "hsl": {
    "h": 216.857,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.30995,
    "c": 0.08403,
    "h": 259.4
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#142F5A
secondary
#926F38
accent
#A741E7
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #142F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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