#142E7E#142E7E

#142E7E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.139 H 265.4°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#142E7E
RGBrgb(20, 46, 126)
HSLhsl(225, 73%, 29%)
HSVhsv(225, 84%, 49%)
CMYKcmyk(84.1%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.33, 22.50, -47.91)
CIE-LCHlch(22.33, 52.93, 295.15°)
OKLaboklab(33.89% -0.011 -0.1386)
OKLCHoklch(33.89% 0.139 265.4)
XYZxyz(5.0301, 3.6085, 20.1660)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E7E #7E6414
analogous
#14637E #142E7E #2F147E
triadic
#142E7E #7E142E #2E7E14
tetradic
#142E7E #7E1463 #7E6414 #147E2F
square
#142E7E #7E1463 #7E6414 #147E2F
split-complementary
#142E7E #7E2F14 #637E14
monochromatic
#040A1A #0C1B49 #142E7E #1C41B3 #2E5ADE

Accessibility & contrast

On white

12.20
#142E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#142E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142E7E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142E7E#FFFFFF#000000##FFFFFF
##142E7E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142e7e;
/* rgb */ color: rgb(20, 46, 126);
/* oklch */ color: oklch(33.9% 0.139 265.4);
Tailwind
colors: {
  custom: {
    50: '#6666a4',
    500: '#142e7e',
    950: '#000000',
  },
}
SCSS
$custom: #142e7e;
$custom-light: #6666a4;
$custom-dark: #000000;
JSON
{
  "hex": "#142e7e",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 225.283,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33892,
    "c": 0.13906,
    "h": 265.4
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#142E7E
secondary
#B3963A
accent
#C238EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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