#142A5C#142A5C

#142A5C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.094 H 263.8°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#142A5C
RGBrgb(20, 42, 92)
HSLhsl(222, 64%, 22%)
HSVhsv(222, 78%, 36%)
CMYKcmyk(78.3%, 54.3%, 0%, 63.9%)
CIE-LABlab(18.26, 11.16, -32.52)
CIE-LCHlch(18.26, 34.38, 288.94°)
OKLaboklab(29.93% -0.0102 -0.0935)
OKLCHoklch(29.93% 0.094 263.8)
XYZxyz(3.0475, 2.5770, 10.4599)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A5C #5C4614
analogous
#144E5C #142A5C #22145C
triadic
#142A5C #5C142A #2A5C14
tetradic
#142A5C #5C144E #5C4614 #145C22
square
#142A5C #5C144E #5C4614 #145C22
split-complementary
#142A5C #5C2214 #4E5C14
monochromatic
#050B19 #09132A #142A5C #1F418E #2A58C1

Accessibility & contrast

On white

13.86
#142A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#142A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A5C
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A5C#FFFFFF#000000##FFFFFF
##142A5C1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #142a5c;
/* rgb */ color: rgb(20, 42, 92);
/* oklch */ color: oklch(29.9% 0.094 263.8);
Tailwind
colors: {
  custom: {
    50: '#5d638a',
    500: '#142a5c',
    950: '#000000',
  },
}
SCSS
$custom: #142a5c;
$custom-light: #5d638a;
$custom-dark: #000000;
JSON
{
  "hex": "#142a5c",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 92
  },
  "hsl": {
    "h": 221.667,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29926,
    "c": 0.09403,
    "h": 263.8
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#142A5C
secondary
#947838
accent
#B441E7
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #142A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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