#142C7B#142C7B

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

Color values

HEX#142C7B
RGBrgb(20, 44, 123)
HSLhsl(226, 72%, 28%)
HSVhsv(226, 84%, 48%)
CMYKcmyk(83.7%, 64.2%, 0%, 51.8%)
CIE-LABlab(21.50, 22.68, -47.37)
CIE-LCHlch(21.50, 52.52, 295.59°)
OKLaboklab(33.19% -0.0098 -0.137)
OKLCHoklch(33.19% 0.137 265.9)
XYZxyz(4.7631, 3.3796, 19.1363)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142C7B #7B6314
analogous
#145F7B #142C7B #2F147B
triadic
#142C7B #7B142C #2C7B14
tetradic
#142C7B #7B145F #7B6314 #147B2F
square
#142C7B #7B145F #7B6314 #147B2F
split-complementary
#142C7B #7B2F14 #5F7B14
monochromatic
#04091A #0B1946 #142C7B #1D3FB0 #2D56DD

Accessibility & contrast

On white

12.53
#142C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142C7B
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142C7B#FFFFFF#000000##FFFFFF
##142C7B1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142c7b;
/* rgb */ color: rgb(20, 44, 123);
/* oklch */ color: oklch(33.2% 0.137 265.9);
Tailwind
colors: {
  custom: {
    50: '#6564a2',
    500: '#142c7b',
    950: '#000000',
  },
}
SCSS
$custom: #142c7b;
$custom-light: #6564a2;
$custom-dark: #000000;
JSON
{
  "hex": "#142c7b",
  "rgb": {
    "r": 20,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 226.019,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33192,
    "c": 0.1374,
    "h": 265.9
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#142C7B
secondary
#B1953A
accent
#C439EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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