#142F7F#142F7F

#142F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.139 H 265.2°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#142F7F
RGBrgb(20, 47, 127)
HSLhsl(225, 73%, 29%)
HSVhsv(225, 84%, 50%)
CMYKcmyk(84.3%, 63%, 0%, 50.2%)
CIE-LABlab(22.70, 22.20, -47.94)
CIE-LCHlch(22.70, 52.83, 294.85°)
OKLaboklab(34.19% -0.0116 -0.1387)
OKLCHoklch(34.19% 0.139 265.2)
XYZxyz(5.1344, 3.7134, 20.5207)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F7F #7F6414
analogous
#14657F #142F7F #2F147F
triadic
#142F7F #7F142F #2F7F14
tetradic
#142F7F #7F1465 #7F6414 #147F2F
square
#142F7F #7F1465 #7F6414 #147F2F
split-complementary
#142F7F #7F2F14 #657F14
monochromatic
#040A1A #0C1B4A #142F7F #1C43B4 #2F5BDE

Accessibility & contrast

On white

12.05
#142F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#142F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F7F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F7F#FFFFFF#000000##FFFFFF
##142F7F1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #142f7f;
/* rgb */ color: rgb(20, 47, 127);
/* oklch */ color: oklch(34.2% 0.139 265.2);
Tailwind
colors: {
  custom: {
    50: '#6667a5',
    500: '#142f7f',
    950: '#000000',
  },
}
SCSS
$custom: #142f7f;
$custom-light: #6667a5;
$custom-dark: #000000;
JSON
{
  "hex": "#142f7f",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 224.86,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.13919,
    "h": 265.2
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#142F7F
secondary
#B4963B
accent
#C138EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #142F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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