#142A7F#142A7F

#142A7F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.146 H 266.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#142A7F
RGBrgb(20, 42, 127)
HSLhsl(228, 73%, 29%)
HSVhsv(228, 84%, 50%)
CMYKcmyk(84.3%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.34, 25.70, -50.16)
CIE-LCHlch(21.34, 56.37, 297.13°)
OKLaboklab(33.19% -0.0088 -0.1453)
OKLCHoklch(33.19% 0.146 266.6)
XYZxyz(4.9459, 3.3364, 20.4579)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A7F #7F6914
analogous
#14607F #142A7F #34147F
triadic
#142A7F #7F142A #2A7F14
tetradic
#142A7F #7F1460 #7F6914 #147F34
square
#142A7F #7F1460 #7F6914 #147F34
split-complementary
#142A7F #7F3414 #607F14
monochromatic
#04091A #0C194A #142A7F #1C3BB4 #2F53DE

Accessibility & contrast

On white

12.59
#142A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#142A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A7F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A7F#FFFFFF#000000##FFFFFF
##142A7F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #142a7f;
/* rgb */ color: rgb(20, 42, 127);
/* oklch */ color: oklch(33.2% 0.146 266.6);
Tailwind
colors: {
  custom: {
    50: '#6763a5',
    500: '#142a7f',
    950: '#000000',
  },
}
SCSS
$custom: #142a7f;
$custom-light: #6763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#142a7f",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 227.664,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3319,
    "c": 0.14552,
    "h": 266.6
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#142A7F
secondary
#B49B3B
accent
#CA38EF
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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