#142F8A#142F8A

#142F8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.154 H 265.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#142F8A
RGBrgb(20, 47, 138)
HSLhsl(226, 75%, 31%)
HSVhsv(226, 86%, 54%)
CMYKcmyk(85.5%, 65.9%, 0%, 45.9%)
CIE-LABlab(23.72, 26.65, -53.16)
CIE-LCHlch(23.72, 59.47, 296.62°)
OKLaboklab(35.27% -0.0117 -0.154)
OKLCHoklch(35.27% 0.154 265.7)
XYZxyz(5.8908, 4.0160, 24.5045)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F8A #8A6F14
analogous
#146A8A #142F8A #34148A
triadic
#142F8A #8A142F #2F8A14
tetradic
#142F8A #8A146A #8A6F14 #148A34
square
#142F8A #8A146A #8A6F14 #148A34
split-complementary
#142F8A #8A3414 #6A8A14
monochromatic
#050B1F #0C1D55 #142F8A #1C41BF #365EE2

Accessibility & contrast

On white

11.64
#142F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#142F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F8A
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F8A#FFFFFF#000000##FFFFFF
##142F8A1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #142f8a;
/* rgb */ color: rgb(20, 47, 138);
/* oklch */ color: oklch(35.3% 0.154 265.7);
Tailwind
colors: {
  custom: {
    50: '#6967ad',
    500: '#142f8a',
    950: '#000000',
  },
}
SCSS
$custom: #142f8a;
$custom-light: #6967ad;
$custom-dark: #000000;
JSON
{
  "hex": "#142f8a",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 226.271,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35268,
    "c": 0.15442,
    "h": 265.7
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#142F8A
secondary
#BEA03C
accent
#C736F1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #142F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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