#142D7C#142D7C

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

Color values

HEX#142D7C
RGBrgb(20, 45, 124)
HSLhsl(226, 72%, 28%)
HSVhsv(226, 84%, 49%)
CMYKcmyk(83.9%, 63.7%, 0%, 51.4%)
CIE-LABlab(21.87, 22.38, -47.40)
CIE-LCHlch(21.87, 52.42, 295.28°)
OKLaboklab(33.49% -0.0104 -0.1371)
OKLCHoklch(33.49% 0.138 265.6)
XYZxyz(4.8637, 3.4802, 19.4803)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142D7C #7C6314
analogous
#14617C #142D7C #2F147C
triadic
#142D7C #7C142D #2D7C14
tetradic
#142D7C #7C1461 #7C6314 #147C2F
square
#142D7C #7C1461 #7C6314 #147C2F
split-complementary
#142D7C #7C2F14 #617C14
monochromatic
#040A1A #0B1A47 #142D7C #1D40B1 #2D58DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##142D7C#FFFFFF#000000##FFFFFF
##142D7C1.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)
#00397F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142d7c;
/* rgb */ color: rgb(20, 45, 124);
/* oklch */ color: oklch(33.5% 0.138 265.6);
Tailwind
colors: {
  custom: {
    50: '#6665a3',
    500: '#142d7c',
    950: '#000000',
  },
}
SCSS
$custom: #142d7c;
$custom-light: #6665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142d7c",
  "rgb": {
    "r": 20,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 225.577,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33494,
    "c": 0.13753,
    "h": 265.6
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#142D7C
secondary
#B2953A
accent
#C339EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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