#142C7E#142C7E

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

Color values

HEX#142C7E
RGBrgb(20, 44, 126)
HSLhsl(226, 73%, 29%)
HSVhsv(226, 84%, 49%)
CMYKcmyk(84.1%, 65.1%, 0%, 50.6%)
CIE-LABlab(21.78, 23.90, -48.81)
CIE-LCHlch(21.78, 54.35, 296.09°)
OKLaboklab(33.49% -0.0098 -0.1413)
OKLCHoklch(33.49% 0.142 266)
XYZxyz(4.9537, 3.4559, 20.1406)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142C7E #7E6614
analogous
#14617E #142C7E #31147E
triadic
#142C7E #7E142C #2C7E14
tetradic
#142C7E #7E1461 #7E6614 #147E31
square
#142C7E #7E1461 #7E6614 #147E31
split-complementary
#142C7E #7E3114 #617E14
monochromatic
#04091A #0C1A49 #142C7E #1C3EB3 #2E56DE

Accessibility & contrast

On white

12.42
#142C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142C7E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142C7E#FFFFFF#000000##FFFFFF
##142C7E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #142c7e;
/* rgb */ color: rgb(20, 44, 126);
/* oklch */ color: oklch(33.5% 0.142 266.0);
Tailwind
colors: {
  custom: {
    50: '#6664a4',
    500: '#142c7e',
    950: '#000000',
  },
}
SCSS
$custom: #142c7e;
$custom-light: #6664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#142c7e",
  "rgb": {
    "r": 20,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 226.415,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33486,
    "c": 0.14162,
    "h": 266
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #142C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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