#142F81#142F81

#142F81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.142 H 265.3°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#142F81
RGBrgb(20, 47, 129)
HSLhsl(225, 73%, 29%)
HSVhsv(225, 84%, 51%)
CMYKcmyk(84.5%, 63.6%, 0%, 49.4%)
CIE-LABlab(22.88, 23.02, -48.91)
CIE-LCHlch(22.88, 54.05, 295.20°)
OKLaboklab(34.39% -0.0116 -0.1415)
OKLCHoklch(34.39% 0.142 265.3)
XYZxyz(5.2661, 3.7661, 21.2140)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F81 #816614
analogous
#146681 #142F81 #301481
triadic
#142F81 #81142F #2F8114
tetradic
#142F81 #811466 #816614 #148130
square
#142F81 #811466 #816614 #148130
split-complementary
#142F81 #813014 #668114
monochromatic
#040A1A #0C1C4C #142F81 #1C42B6 #305CDF

Accessibility & contrast

On white

11.98
#142F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#142F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F81
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F81#FFFFFF#000000##FFFFFF
##142F811.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #142f81;
/* rgb */ color: rgb(20, 47, 129);
/* oklch */ color: oklch(34.4% 0.142 265.3);
Tailwind
colors: {
  custom: {
    50: '#6767a6',
    500: '#142f81',
    950: '#000000',
  },
}
SCSS
$custom: #142f81;
$custom-light: #6767a6;
$custom-dark: #000000;
JSON
{
  "hex": "#142f81",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 225.138,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34386,
    "c": 0.142,
    "h": 265.3
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#142F81
secondary
#B6983B
accent
#C238F0
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #142F81

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

Preview Lab → · Contrast checker → · Palette generator →

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