#142A5A#142A5A

#142A5A is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.091 H 263.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#142A5A
RGBrgb(20, 42, 90)
HSLhsl(221, 64%, 22%)
HSVhsv(221, 78%, 35%)
CMYKcmyk(77.8%, 53.3%, 0%, 64.7%)
CIE-LABlab(18.11, 10.31, -31.44)
CIE-LCHlch(18.11, 33.09, 288.15°)
OKLaboklab(29.76% -0.0105 -0.0903)
OKLCHoklch(29.76% 0.091 263.4)
XYZxyz(2.9613, 2.5425, 10.0056)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A5A #5A4414
analogous
#144D5A #142A5A #21145A
triadic
#142A5A #5A142A #2A5A14
tetradic
#142A5A #5A144D #5A4414 #145A21
square
#142A5A #5A144D #5A4414 #145A21
split-complementary
#142A5A #5A2114 #4D5A14
monochromatic
#060C19 #091328 #142A5A #1F418C #2A59BE

Accessibility & contrast

On white

13.92
#142A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#142A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A5A
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A5A#FFFFFF#000000##FFFFFF
##142A5A1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #142a5a;
/* rgb */ color: rgb(20, 42, 90);
/* oklch */ color: oklch(29.8% 0.091 263.4);
Tailwind
colors: {
  custom: {
    50: '#5c6389',
    500: '#142a5a',
    950: '#000000',
  },
}
SCSS
$custom: #142a5a;
$custom-light: #5c6389;
$custom-dark: #000000;
JSON
{
  "hex": "#142a5a",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 90
  },
  "hsl": {
    "h": 221.143,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29759,
    "c": 0.0909,
    "h": 263.4
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#142A5A
secondary
#927638
accent
#B341E7
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #142A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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