#142F7C#142F7C

#142F7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.135 H 265.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#142F7C
RGBrgb(20, 47, 124)
HSLhsl(224, 72%, 28%)
HSVhsv(224, 84%, 49%)
CMYKcmyk(83.9%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.43, 20.97, -46.49)
CIE-LCHlch(22.43, 51.00, 294.28°)
OKLaboklab(33.91% -0.0117 -0.1344)
OKLCHoklch(33.91% 0.135 265)
XYZxyz(4.9418, 3.6364, 19.5063)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142F7C #7C6114
analogous
#14637C #142F7C #2D147C
triadic
#142F7C #7C142F #2F7C14
tetradic
#142F7C #7C1463 #7C6114 #147C2D
square
#142F7C #7C1463 #7C6114 #147C2D
split-complementary
#142F7C #7C2D14 #637C14
monochromatic
#040A1A #0B1B47 #142F7C #1D43B1 #2D5BDD

Accessibility & contrast

On white

12.16
#142F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142F7C
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142F7C#FFFFFF#000000##FFFFFF
##142F7C1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #142f7c;
/* rgb */ color: rgb(20, 47, 124);
/* oklch */ color: oklch(33.9% 0.135 265.0);
Tailwind
colors: {
  custom: {
    50: '#6567a3',
    500: '#142f7c',
    950: '#000000',
  },
}
SCSS
$custom: #142f7c;
$custom-light: #6567a3;
$custom-dark: #000000;
JSON
{
  "hex": "#142f7c",
  "rgb": {
    "r": 20,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 224.423,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3391,
    "c": 0.13494,
    "h": 265
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #142F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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