#142F7D#142F7D

#142F7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.136 H 265.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#142F7D
RGBrgb(20, 47, 125)
HSLhsl(225, 72%, 28%)
HSVhsv(225, 84%, 49%)
CMYKcmyk(84%, 62.4%, 0%, 51%)
CIE-LABlab(22.52, 21.38, -46.97)
CIE-LCHlch(22.52, 51.61, 294.47°)
OKLaboklab(34% -0.0117 -0.1358)
OKLCHoklch(34% 0.136 265.1)
XYZxyz(5.0054, 3.6618, 19.8411)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F7D #7D6214
analogous
#14637D #142F7D #2D147D
triadic
#142F7D #7D142F #2F7D14
tetradic
#142F7D #7D1463 #7D6214 #147D2D
square
#142F7D #7D1463 #7D6214 #147D2D
split-complementary
#142F7D #7D2D14 #637D14
monochromatic
#040A1A #0C1B48 #142F7D #1C43B2 #2E5BDE

Accessibility & contrast

On white

12.12
#142F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#142F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142F7D
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F7D#FFFFFF#000000##FFFFFF
##142F7D1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #142f7d;
/* rgb */ color: rgb(20, 47, 125);
/* oklch */ color: oklch(34.0% 0.136 265.1);
Tailwind
colors: {
  custom: {
    50: '#6667a3',
    500: '#142f7d',
    950: '#000000',
  },
}
SCSS
$custom: #142f7d;
$custom-light: #6667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142f7d",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 224.571,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34004,
    "c": 0.13635,
    "h": 265.1
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#142F7D
secondary
#B2943A
accent
#C039EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #142F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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