#142A81#142A81

#142A81 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.148 H 266.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#142A81
RGBrgb(20, 42, 129)
HSLhsl(228, 73%, 29%)
HSVhsv(228, 84%, 51%)
CMYKcmyk(84.5%, 67.4%, 0%, 49.4%)
CIE-LABlab(21.54, 26.50, -51.11)
CIE-LCHlch(21.54, 57.57, 297.41°)
OKLaboklab(33.39% -0.0088 -0.148)
OKLCHoklch(33.39% 0.148 266.6)
XYZxyz(5.0775, 3.3890, 21.1512)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A81 #816B14
analogous
#146181 #142A81 #351481
triadic
#142A81 #81142A #2A8114
tetradic
#142A81 #811461 #816B14 #148135
square
#142A81 #811461 #816B14 #148135
split-complementary
#142A81 #813514 #618114
monochromatic
#04091A #0C194C #142A81 #1C3BB6 #3054DF

Accessibility & contrast

On white

12.51
#142A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#142A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A81
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A81#FFFFFF#000000##FFFFFF
##142A811.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142a81;
/* rgb */ color: rgb(20, 42, 129);
/* oklch */ color: oklch(33.4% 0.148 266.6);
Tailwind
colors: {
  custom: {
    50: '#6763a6',
    500: '#142a81',
    950: '#000000',
  },
}
SCSS
$custom: #142a81;
$custom-light: #6763a6;
$custom-dark: #000000;
JSON
{
  "hex": "#142a81",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 129
  },
  "hsl": {
    "h": 227.89,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33393,
    "c": 0.14828,
    "h": 266.6
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#142A81
secondary
#B69D3B
accent
#CB38F0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142A81

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

Preview Lab → · Contrast checker → · Palette generator →

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