#142B8A#142B8A

#142B8A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.159 H 266.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#142B8A
RGBrgb(20, 43, 138)
HSLhsl(228, 75%, 31%)
HSVhsv(228, 86%, 54%)
CMYKcmyk(85.5%, 68.8%, 0%, 45.9%)
CIE-LABlab(22.69, 29.37, -54.86)
CIE-LCHlch(22.69, 62.23, 298.17°)
OKLaboklab(34.51% -0.0097 -0.159)
OKLCHoklch(34.51% 0.159 266.5)
XYZxyz(5.7382, 3.7108, 24.4536)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142B8A #8A7314
analogous
#14668A #142B8A #38148A
triadic
#142B8A #8A142B #2B8A14
tetradic
#142B8A #8A1466 #8A7314 #148A38
square
#142B8A #8A1466 #8A7314 #148A38
split-complementary
#142B8A #8A3814 #668A14
monochromatic
#050A1F #0C1A55 #142B8A #1C3CBF #3658E2

Accessibility & contrast

On white

12.05
#142B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#142B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142B8A
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142B8A#FFFFFF#000000##FFFFFF
##142B8A1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #142b8a;
/* rgb */ color: rgb(20, 43, 138);
/* oklch */ color: oklch(34.5% 0.159 266.5);
Tailwind
colors: {
  custom: {
    50: '#6a64ad',
    500: '#142b8a',
    950: '#000000',
  },
}
SCSS
$custom: #142b8a;
$custom-light: #6a64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#142b8a",
  "rgb": {
    "r": 20,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 228.305,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34509,
    "c": 0.15927,
    "h": 266.5
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#142B8A
secondary
#BEA53C
accent
#CD36F1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #142B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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