#142C81#142C81

#142C81 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.146 H 266.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#142C81
RGBrgb(20, 44, 129)
HSLhsl(227, 73%, 29%)
HSVhsv(227, 84%, 51%)
CMYKcmyk(84.5%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.07, 25.12, -50.24)
CIE-LCHlch(22.07, 56.17, 296.56°)
OKLaboklab(33.78% -0.0099 -0.1455)
OKLCHoklch(33.78% 0.146 266.1)
XYZxyz(5.1502, 3.5344, 21.1754)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142C81 #816914
analogous
#146381 #142C81 #331481
triadic
#142C81 #81142C #2C8114
tetradic
#142C81 #811463 #816914 #148133
square
#142C81 #811463 #816914 #148133
split-complementary
#142C81 #813314 #638114
monochromatic
#04091A #0C1A4C #142C81 #1C3EB6 #3057DF

Accessibility & contrast

On white

12.30
#142C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#142C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142C81
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142C81#FFFFFF#000000##FFFFFF
##142C811.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142c81;
/* rgb */ color: rgb(20, 44, 129);
/* oklch */ color: oklch(33.8% 0.146 266.1);
Tailwind
colors: {
  custom: {
    50: '#6764a6',
    500: '#142c81',
    950: '#000000',
  },
}
SCSS
$custom: #142c81;
$custom-light: #6764a6;
$custom-dark: #000000;
JSON
{
  "hex": "#142c81",
  "rgb": {
    "r": 20,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 226.789,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33783,
    "c": 0.1458,
    "h": 266.1
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#142C81
secondary
#B69B3B
accent
#C738F0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142C81

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

Preview Lab → · Contrast checker → · Palette generator →

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