#142E81#142E81

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

Color values

HEX#142E81
RGBrgb(20, 46, 129)
HSLhsl(226, 73%, 29%)
HSVhsv(226, 84%, 51%)
CMYKcmyk(84.5%, 64.3%, 0%, 49.4%)
CIE-LABlab(22.61, 23.72, -49.35)
CIE-LCHlch(22.61, 54.76, 295.67°)
OKLaboklab(34.18% -0.011 -0.1428)
OKLCHoklch(34.18% 0.143 265.6)
XYZxyz(5.2265, 3.6871, 21.2008)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E81 #816714
analogous
#146581 #142E81 #311481
triadic
#142E81 #81142E #2E8114
tetradic
#142E81 #811465 #816714 #148131
square
#142E81 #811465 #816714 #148131
split-complementary
#142E81 #813114 #658114
monochromatic
#04091A #0C1B4C #142E81 #1C41B6 #305ADF

Accessibility & contrast

On white

12.09
#142E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142E81
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142E81#FFFFFF#000000##FFFFFF
##142E811.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #142e81;
/* rgb */ color: rgb(20, 46, 129);
/* oklch */ color: oklch(34.2% 0.143 265.6);
Tailwind
colors: {
  custom: {
    50: '#6766a6',
    500: '#142e81',
    950: '#000000',
  },
}
SCSS
$custom: #142e81;
$custom-light: #6766a6;
$custom-dark: #000000;
JSON
{
  "hex": "#142e81",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 225.688,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34183,
    "c": 0.14327,
    "h": 265.6
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#142E81
secondary
#B6993B
accent
#C438F0
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142E81

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

Preview Lab → · Contrast checker → · Palette generator →

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