#142D8A#142D8A

#142D8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.157 H 266.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#142D8A
RGBrgb(20, 45, 138)
HSLhsl(227, 75%, 31%)
HSVhsv(227, 86%, 54%)
CMYKcmyk(85.5%, 67.4%, 0%, 45.9%)
CIE-LABlab(23.20, 28.02, -54.02)
CIE-LCHlch(23.20, 60.85, 297.41°)
OKLaboklab(34.88% -0.0107 -0.1565)
OKLCHoklch(34.88% 0.157 266.1)
XYZxyz(5.8127, 3.8598, 24.4785)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142D8A #8A7114
analogous
#14688A #142D8A #36148A
triadic
#142D8A #8A142D #2D8A14
tetradic
#142D8A #8A1468 #8A7114 #148A36
square
#142D8A #8A1468 #8A7114 #148A36
split-complementary
#142D8A #8A3614 #688A14
monochromatic
#050A1F #0C1C55 #142D8A #1C3EBF #365BE2

Accessibility & contrast

On white

11.85
#142D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#142D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142D8A
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142D8A#FFFFFF#000000##FFFFFF
##142D8A1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #142d8a;
/* rgb */ color: rgb(20, 45, 138);
/* oklch */ color: oklch(34.9% 0.157 266.1);
Tailwind
colors: {
  custom: {
    50: '#6a65ad',
    500: '#142d8a',
    950: '#000000',
  },
}
SCSS
$custom: #142d8a;
$custom-light: #6a65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#142d8a",
  "rgb": {
    "r": 20,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 227.288,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34884,
    "c": 0.15686,
    "h": 266.1
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#142D8A
secondary
#BEA33C
accent
#CA36F1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #142D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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