#142F8F#142F8F

#142F8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.161 H 265.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#142F8F
RGBrgb(20, 47, 143)
HSLhsl(227, 75%, 32%)
HSVhsv(227, 86%, 56%)
CMYKcmyk(86%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.21, 28.63, -55.48)
CIE-LCHlch(24.21, 62.43, 297.30°)
OKLaboklab(35.77% -0.0118 -0.1607)
OKLCHoklch(35.77% 0.161 265.8)
XYZxyz(6.2612, 4.1642, 26.4550)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F8F #8F7414
analogous
#146D8F #142F8F #36148F
triadic
#142F8F #8F142F #2F8F14
tetradic
#142F8F #8F146D #8F7414 #148F36
square
#142F8F #8F146D #8F7414 #148F36
split-complementary
#142F8F #8F3614 #6D8F14
monochromatic
#050C24 #0C1D59 #142F8F #1C41C5 #3A5FE3

Accessibility & contrast

On white

11.46
#142F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#142F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F8F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F8F#FFFFFF#000000##FFFFFF
##142F8F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #142f8f;
/* rgb */ color: rgb(20, 47, 143);
/* oklch */ color: oklch(35.8% 0.161 265.8);
Tailwind
colors: {
  custom: {
    50: '#6b67b1',
    500: '#142f8f',
    950: '#000000',
  },
}
SCSS
$custom: #142f8f;
$custom-light: #6b67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#142f8f",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 226.829,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35771,
    "c": 0.16117,
    "h": 265.8
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#142F8F
secondary
#C3A53C
accent
#C936F2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #142F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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