#142A7C#142A7C

#142A7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.141 H 266.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#142A7C
RGBrgb(20, 42, 124)
HSLhsl(227, 72%, 28%)
HSVhsv(227, 84%, 49%)
CMYKcmyk(83.9%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.05, 24.50, -48.74)
CIE-LCHlch(21.05, 54.55, 296.69°)
OKLaboklab(32.89% -0.0087 -0.1411)
OKLCHoklch(32.89% 0.141 266.5)
XYZxyz(4.7533, 3.2593, 19.4435)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A7C #7C6614
analogous
#145E7C #142A7C #32147C
triadic
#142A7C #7C142A #2A7C14
tetradic
#142A7C #7C145E #7C6614 #147C32
square
#142A7C #7C145E #7C6614 #147C32
split-complementary
#142A7C #7C3214 #5E7C14
monochromatic
#04091A #0B1847 #142A7C #1D3CB1 #2D52DD

Accessibility & contrast

On white

12.71
#142A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#142A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A7C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A7C#FFFFFF#000000##FFFFFF
##142A7C1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #142a7c;
/* rgb */ color: rgb(20, 42, 124);
/* oklch */ color: oklch(32.9% 0.141 266.5);
Tailwind
colors: {
  custom: {
    50: '#6663a3',
    500: '#142a7c',
    950: '#000000',
  },
}
SCSS
$custom: #142a7c;
$custom-light: #6663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142a7c",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 227.308,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32888,
    "c": 0.14136,
    "h": 266.5
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#142A7C
secondary
#B2983A
accent
#C839EF
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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