#142F58#142F58

#142F58 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.081 H 258.6°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#142F58
RGBrgb(20, 47, 88)
HSLhsl(216, 63%, 21%)
HSVhsv(216, 77%, 35%)
CMYKcmyk(77.3%, 46.6%, 0%, 65.5%)
CIE-LABlab(19.58, 5.79, -27.75)
CIE-LCHlch(19.58, 28.35, 281.79°)
OKLaboklab(30.84% -0.0159 -0.0793)
OKLCHoklch(30.84% 0.081 258.6)
XYZxyz(3.0658, 2.8860, 9.6261)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F58 #583D14
analogous
#145158 #142F58 #1B1458
triadic
#142F58 #58142F #2F5814
tetradic
#142F58 #581451 #583D14 #14581B
square
#142F58 #581451 #583D14 #14581B
split-complementary
#142F58 #581B14 #515814
monochromatic
#060D19 #091426 #142F58 #1F4A8A #2B64BC

Accessibility & contrast

On white

13.31
#142F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142F58
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F58#FFFFFF#000000##FFFFFF
##142F581.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335A
Deuteranopia (green-blind)
#0F2C57
Tritanopia (blue-blind)
#00393F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #142f58;
/* rgb */ color: rgb(20, 47, 88);
/* oklch */ color: oklch(30.8% 0.081 258.6);
Tailwind
colors: {
  custom: {
    50: '#5c6787',
    500: '#142f58',
    950: '#000000',
  },
}
SCSS
$custom: #142f58;
$custom-light: #5c6787;
$custom-dark: #000000;
JSON
{
  "hex": "#142f58",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 88
  },
  "hsl": {
    "h": 216.176,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30844,
    "c": 0.08093,
    "h": 258.6
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#142F58
secondary
#906D38
accent
#A542E6
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #142F58

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

Preview Lab → · Contrast checker → · Palette generator →

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