#142C7D#142C7D

#142C7D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.140 H 266.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#142C7D
RGBrgb(20, 44, 125)
HSLhsl(226, 72%, 28%)
HSVhsv(226, 84%, 49%)
CMYKcmyk(84%, 64.8%, 0%, 51%)
CIE-LABlab(21.69, 23.50, -48.33)
CIE-LCHlch(21.69, 53.74, 295.93°)
OKLaboklab(33.39% -0.0098 -0.1399)
OKLCHoklch(33.39% 0.14 266)
XYZxyz(4.8895, 3.4302, 19.8024)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142C7D #7D6514
analogous
#14607D #142C7D #30147D
triadic
#142C7D #7D142C #2C7D14
tetradic
#142C7D #7D1460 #7D6514 #147D30
square
#142C7D #7D1460 #7D6514 #147D30
split-complementary
#142C7D #7D3014 #607D14
monochromatic
#04091A #0C1948 #142C7D #1C3FB2 #2E56DE

Accessibility & contrast

On white

12.45
#142C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#142C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142C7D
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142C7D#FFFFFF#000000##FFFFFF
##142C7D1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142c7d;
/* rgb */ color: rgb(20, 44, 125);
/* oklch */ color: oklch(33.4% 0.140 266.0);
Tailwind
colors: {
  custom: {
    50: '#6664a3',
    500: '#142c7d',
    950: '#000000',
  },
}
SCSS
$custom: #142c7d;
$custom-light: #6664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142c7d",
  "rgb": {
    "r": 20,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 226.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33387,
    "c": 0.14022,
    "h": 266
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#142C7D
secondary
#B2973A
accent
#C539EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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