#142C7C#142C7C

#142C7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.139 H 265.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#142C7C
RGBrgb(20, 44, 124)
HSLhsl(226, 72%, 28%)
HSVhsv(226, 84%, 49%)
CMYKcmyk(83.9%, 64.5%, 0%, 51.4%)
CIE-LABlab(21.60, 23.09, -47.85)
CIE-LCHlch(21.60, 53.13, 295.76°)
OKLaboklab(33.29% -0.0098 -0.1385)
OKLCHoklch(33.29% 0.139 265.9)
XYZxyz(4.8260, 3.4047, 19.4677)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142C7C #7C6414
analogous
#14607C #142C7C #30147C
triadic
#142C7C #7C142C #2C7C14
tetradic
#142C7C #7C1460 #7C6414 #147C30
square
#142C7C #7C1460 #7C6414 #147C30
split-complementary
#142C7C #7C3014 #607C14
monochromatic
#04091A #0B1947 #142C7C #1D3FB1 #2D56DD

Accessibility & contrast

On white

12.49
#142C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#142C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142C7C
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142C7C#FFFFFF#000000##FFFFFF
##142C7C1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142c7c;
/* rgb */ color: rgb(20, 44, 124);
/* oklch */ color: oklch(33.3% 0.139 265.9);
Tailwind
colors: {
  custom: {
    50: '#6664a3',
    500: '#142c7c',
    950: '#000000',
  },
}
SCSS
$custom: #142c7c;
$custom-light: #6664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142c7c",
  "rgb": {
    "r": 20,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 226.154,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33289,
    "c": 0.13882,
    "h": 265.9
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #142C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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