#142D81#142D81

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

Color values

HEX#142D81
RGBrgb(20, 45, 129)
HSLhsl(226, 73%, 29%)
HSVhsv(226, 84%, 51%)
CMYKcmyk(84.5%, 65.1%, 0%, 49.4%)
CIE-LABlab(22.34, 24.42, -49.80)
CIE-LCHlch(22.34, 55.46, 296.12°)
OKLaboklab(33.98% -0.0104 -0.1442)
OKLCHoklch(33.98% 0.145 265.9)
XYZxyz(5.1879, 3.6099, 21.1880)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142D81 #816814
analogous
#146481 #142D81 #321481
triadic
#142D81 #81142D #2D8114
tetradic
#142D81 #811464 #816814 #148132
square
#142D81 #811464 #816814 #148132
split-complementary
#142D81 #813214 #648114
monochromatic
#04091A #0C1B4C #142D81 #1C3FB6 #3058DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##142D81#FFFFFF#000000##FFFFFF
##142D811.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)
#003B84
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142d81;
/* rgb */ color: rgb(20, 45, 129);
/* oklch */ color: oklch(34.0% 0.145 265.9);
Tailwind
colors: {
  custom: {
    50: '#6765a6',
    500: '#142d81',
    950: '#000000',
  },
}
SCSS
$custom: #142d81;
$custom-light: #6765a6;
$custom-dark: #000000;
JSON
{
  "hex": "#142d81",
  "rgb": {
    "r": 20,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 226.239,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33982,
    "c": 0.14454,
    "h": 265.9
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#142D81
secondary
#B69A3B
accent
#C638F0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142D81

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

Preview Lab → · Contrast checker → · Palette generator →

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