#142F7A#142F7A

#142F7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.132 H 264.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#142F7A
RGBrgb(20, 47, 122)
HSLhsl(224, 72%, 28%)
HSVhsv(224, 84%, 48%)
CMYKcmyk(83.6%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.25, 20.14, -45.51)
CIE-LCHlch(22.25, 49.76, 293.87°)
OKLaboklab(33.72% -0.0118 -0.1315)
OKLCHoklch(33.72% 0.132 264.9)
XYZxyz(4.8166, 3.5863, 18.8470)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F7A #7A5F14
analogous
#14627A #142F7A #2C147A
triadic
#142F7A #7A142F #2F7A14
tetradic
#142F7A #7A1462 #7A5F14 #147A2C
square
#142F7A #7A1462 #7A5F14 #147A2C
split-complementary
#142F7A #7A2C14 #627A14
monochromatic
#040A1A #0B1B45 #142F7A #1D43AF #2C5BDC

Accessibility & contrast

On white

12.23
#142F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#142F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F7A
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F7A#FFFFFF#000000##FFFFFF
##142F7A1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142f7a;
/* rgb */ color: rgb(20, 47, 122);
/* oklch */ color: oklch(33.7% 0.132 264.9);
Tailwind
colors: {
  custom: {
    50: '#6567a1',
    500: '#142f7a',
    950: '#000000',
  },
}
SCSS
$custom: #142f7a;
$custom-light: #6567a1;
$custom-dark: #000000;
JSON
{
  "hex": "#142f7a",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 224.118,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33722,
    "c": 0.13208,
    "h": 264.9
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#142F7A
secondary
#B0913A
accent
#BF39EF
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #142F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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