#142C7F#142C7F

#142C7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.143 H 266.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#142C7F
RGBrgb(20, 44, 127)
HSLhsl(227, 73%, 29%)
HSVhsv(227, 84%, 50%)
CMYKcmyk(84.3%, 65.4%, 0%, 50.2%)
CIE-LABlab(21.88, 24.31, -49.29)
CIE-LCHlch(21.88, 54.96, 296.25°)
OKLaboklab(33.58% -0.0099 -0.1427)
OKLCHoklch(33.58% 0.143 266)
XYZxyz(5.0186, 3.4818, 20.4821)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142C7F #7F6714
analogous
#14627F #142C7F #32147F
triadic
#142C7F #7F142C #2C7F14
tetradic
#142C7F #7F1462 #7F6714 #147F32
square
#142C7F #7F1462 #7F6714 #147F32
split-complementary
#142C7F #7F3214 #627F14
monochromatic
#04091A #0C1A4A #142C7F #1C3EB4 #2F56DE

Accessibility & contrast

On white

12.38
#142C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#142C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142C7F
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142C7F#FFFFFF#000000##FFFFFF
##142C7F1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142c7f;
/* rgb */ color: rgb(20, 44, 127);
/* oklch */ color: oklch(33.6% 0.143 266.0);
Tailwind
colors: {
  custom: {
    50: '#6764a5',
    500: '#142c7f',
    950: '#000000',
  },
}
SCSS
$custom: #142c7f;
$custom-light: #6764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#142c7f",
  "rgb": {
    "r": 20,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 226.542,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33584,
    "c": 0.14302,
    "h": 266
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#142C7F
secondary
#B4993B
accent
#C638EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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