#142A7D#142A7D

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

Color values

HEX#142A7D
RGBrgb(20, 42, 125)
HSLhsl(227, 72%, 28%)
HSVhsv(227, 84%, 49%)
CMYKcmyk(84%, 66.4%, 0%, 51%)
CIE-LABlab(21.15, 24.90, -49.22)
CIE-LCHlch(21.15, 55.16, 296.84°)
OKLaboklab(32.99% -0.0087 -0.1425)
OKLCHoklch(32.99% 0.143 266.5)
XYZxyz(4.8168, 3.2847, 19.7782)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A7D #7D6714
analogous
#145E7D #142A7D #33147D
triadic
#142A7D #7D142A #2A7D14
tetradic
#142A7D #7D145E #7D6714 #147D33
square
#142A7D #7D145E #7D6714 #147D33
split-complementary
#142A7D #7D3314 #5E7D14
monochromatic
#04091A #0C1848 #142A7D #1C3CB2 #2E53DE

Accessibility & contrast

On white

12.67
#142A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#142A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A7D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A7D#FFFFFF#000000##FFFFFF
##142A7D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142a7d;
/* rgb */ color: rgb(20, 42, 125);
/* oklch */ color: oklch(33.0% 0.143 266.5);
Tailwind
colors: {
  custom: {
    50: '#6663a3',
    500: '#142a7d',
    950: '#000000',
  },
}
SCSS
$custom: #142a7d;
$custom-light: #6663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142a7d",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 227.429,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32988,
    "c": 0.14275,
    "h": 266.5
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#142A7D
secondary
#B2993A
accent
#C939EF
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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