#142D7D#142D7D

#142D7D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.139 H 265.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#142D7D
RGBrgb(20, 45, 125)
HSLhsl(226, 72%, 28%)
HSVhsv(226, 84%, 49%)
CMYKcmyk(84%, 64%, 0%, 51%)
CIE-LABlab(21.96, 22.79, -47.88)
CIE-LCHlch(21.96, 53.03, 295.46°)
OKLaboklab(33.59% -0.0104 -0.1385)
OKLCHoklch(33.59% 0.139 265.7)
XYZxyz(4.9272, 3.5056, 19.8150)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142D7D #7D6414
analogous
#14617D #142D7D #2F147D
triadic
#142D7D #7D142D #2D7D14
tetradic
#142D7D #7D1461 #7D6414 #147D2F
square
#142D7D #7D1461 #7D6414 #147D2F
split-complementary
#142D7D #7D2F14 #617D14
monochromatic
#04091A #0C1A48 #142D7D #1C40B2 #2E58DE

Accessibility & contrast

On white

12.34
#142D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#142D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142D7D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142D7D#FFFFFF#000000##FFFFFF
##142D7D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142d7d;
/* rgb */ color: rgb(20, 45, 125);
/* oklch */ color: oklch(33.6% 0.139 265.7);
Tailwind
colors: {
  custom: {
    50: '#6665a3',
    500: '#142d7d',
    950: '#000000',
  },
}
SCSS
$custom: #142d7d;
$custom-light: #6665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142d7d",
  "rgb": {
    "r": 20,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 225.714,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33591,
    "c": 0.13894,
    "h": 265.7
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#142D7D
secondary
#B2963A
accent
#C439EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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