#142E7F#142E7F

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

Color values

HEX#142E7F
RGBrgb(20, 46, 127)
HSLhsl(225, 73%, 29%)
HSVhsv(225, 84%, 50%)
CMYKcmyk(84.3%, 63.8%, 0%, 50.2%)
CIE-LABlab(22.42, 22.90, -48.39)
CIE-LCHlch(22.42, 53.54, 295.33°)
OKLaboklab(33.99% -0.011 -0.14)
OKLCHoklch(33.99% 0.14 265.5)
XYZxyz(5.0949, 3.6344, 20.5075)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E7F #7F6514
analogous
#14647F #142E7F #30147F
triadic
#142E7F #7F142E #2E7F14
tetradic
#142E7F #7F1464 #7F6514 #147F30
square
#142E7F #7F1464 #7F6514 #147F30
split-complementary
#142E7F #7F3014 #647F14
monochromatic
#040A1A #0C1B4A #142E7F #1C41B4 #2F5ADE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##142E7F#FFFFFF#000000##FFFFFF
##142E7F1.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)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #142e7f;
/* rgb */ color: rgb(20, 46, 127);
/* oklch */ color: oklch(34.0% 0.140 265.5);
Tailwind
colors: {
  custom: {
    50: '#6666a5',
    500: '#142e7f',
    950: '#000000',
  },
}
SCSS
$custom: #142e7f;
$custom-light: #6666a5;
$custom-dark: #000000;
JSON
{
  "hex": "#142e7f",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 225.421,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33989,
    "c": 0.14047,
    "h": 265.5
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#142E7F
secondary
#B4973B
accent
#C338EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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