#142A75#142A75

#142A75 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.131 H 266.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#142A75
RGBrgb(20, 42, 117)
HSLhsl(226, 71%, 27%)
HSVhsv(226, 83%, 46%)
CMYKcmyk(82.9%, 64.1%, 0%, 54.1%)
CIE-LABlab(20.39, 21.65, -45.35)
CIE-LCHlch(20.39, 50.25, 295.52°)
OKLaboklab(32.2% -0.0086 -0.1312)
OKLCHoklch(32.2% 0.131 266.3)
XYZxyz(4.3262, 3.0885, 17.1943)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A75 #755F14
analogous
#145B75 #142A75 #2F1475
triadic
#142A75 #75142A #2A7514
tetradic
#142A75 #75145B #755F14 #14752F
square
#142A75 #75145B #755F14 #14752F
split-complementary
#142A75 #752F14 #5B7514
monochromatic
#04091A #0B1741 #142A75 #1D3DA9 #2951DA

Accessibility & contrast

On white

12.98
#142A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#142A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A75
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A75#FFFFFF#000000##FFFFFF
##142A751.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #142a75;
/* rgb */ color: rgb(20, 42, 117);
/* oklch */ color: oklch(32.2% 0.131 266.3);
Tailwind
colors: {
  custom: {
    50: '#64639d',
    500: '#142a75',
    950: '#000000',
  },
}
SCSS
$custom: #142a75;
$custom-light: #64639d;
$custom-dark: #000000;
JSON
{
  "hex": "#142a75",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 226.392,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32197,
    "c": 0.13146,
    "h": 266.3
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#142A75
secondary
#AB913A
accent
#C53AEE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142A75

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

Preview Lab → · Contrast checker → · Palette generator →

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