#142D8F#142D8F

#142D8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.164 H 266.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#142D8F
RGBrgb(20, 45, 143)
HSLhsl(228, 75%, 32%)
HSVhsv(228, 86%, 56%)
CMYKcmyk(86%, 68.5%, 0%, 43.9%)
CIE-LABlab(23.70, 29.98, -56.31)
CIE-LCHlch(23.70, 63.80, 298.03°)
OKLaboklab(35.4% -0.0109 -0.1632)
OKLCHoklch(35.4% 0.164 266.2)
XYZxyz(6.1831, 4.0079, 26.4290)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142D8F #8F7614
analogous
#146B8F #142D8F #39148F
triadic
#142D8F #8F142D #2D8F14
tetradic
#142D8F #8F146B #8F7614 #148F39
square
#142D8F #8F146B #8F7614 #148F39
split-complementary
#142D8F #8F3914 #6B8F14
monochromatic
#050B24 #0C1C59 #142D8F #1C3EC5 #3A5CE3

Accessibility & contrast

On white

11.66
#142D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#142D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142D8F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142D8F#FFFFFF#000000##FFFFFF
##142D8F1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #142d8f;
/* rgb */ color: rgb(20, 45, 143);
/* oklch */ color: oklch(35.4% 0.164 266.2);
Tailwind
colors: {
  custom: {
    50: '#6b66b1',
    500: '#142d8f',
    950: '#000000',
  },
}
SCSS
$custom: #142d8f;
$custom-light: #6b66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#142d8f",
  "rgb": {
    "r": 20,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 227.805,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35397,
    "c": 0.16356,
    "h": 266.2
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#142D8F
secondary
#C3A73C
accent
#CC36F2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #142D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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