#142D7F#142D7F

#142D7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.142 H 265.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#142D7F
RGBrgb(20, 45, 127)
HSLhsl(226, 73%, 29%)
HSVhsv(226, 84%, 50%)
CMYKcmyk(84.3%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.15, 23.61, -48.84)
CIE-LCHlch(22.15, 54.25, 295.80°)
OKLaboklab(33.78% -0.0104 -0.1414)
OKLCHoklch(33.78% 0.142 265.8)
XYZxyz(5.0563, 3.5572, 20.4947)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142D7F #7F6614
analogous
#14637F #142D7F #31147F
triadic
#142D7F #7F142D #2D7F14
tetradic
#142D7F #7F1463 #7F6614 #147F31
square
#142D7F #7F1463 #7F6614 #147F31
split-complementary
#142D7F #7F3114 #637F14
monochromatic
#04091A #0C1A4A #142D7F #1C40B4 #2F58DE

Accessibility & contrast

On white

12.27
#142D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#142D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142D7F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142D7F#FFFFFF#000000##FFFFFF
##142D7F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #142d7f;
/* rgb */ color: rgb(20, 45, 127);
/* oklch */ color: oklch(33.8% 0.142 265.8);
Tailwind
colors: {
  custom: {
    50: '#6665a5',
    500: '#142d7f',
    950: '#000000',
  },
}
SCSS
$custom: #142d7f;
$custom-light: #6665a5;
$custom-dark: #000000;
JSON
{
  "hex": "#142d7f",
  "rgb": {
    "r": 20,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 225.981,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33785,
    "c": 0.14174,
    "h": 265.8
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#142D7F
secondary
#B4983B
accent
#C538EF
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #142D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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