#142A62#142A62

#142A62 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.103 H 264.7°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#142A62
RGBrgb(20, 42, 98)
HSLhsl(223, 66%, 23%)
HSVhsv(223, 80%, 38%)
CMYKcmyk(79.6%, 57.1%, 0%, 61.6%)
CIE-LABlab(18.74, 13.71, -35.72)
CIE-LCHlch(18.74, 38.26, 291.00°)
OKLaboklab(30.44% -0.0095 -0.1029)
OKLCHoklch(30.44% 0.103 264.7)
XYZxyz(3.3203, 2.6861, 11.8964)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A62 #624C14
analogous
#145162 #142A62 #251462
triadic
#142A62 #62142A #2A6214
tetradic
#142A62 #621451 #624C14 #146225
square
#142A62 #621451 #624C14 #146225
split-complementary
#142A62 #622514 #516214
monochromatic
#050B19 #0A142F #142A62 #1E4095 #2956C8

Accessibility & contrast

On white

13.66
#142A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#142A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A62
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A62#FFFFFF#000000##FFFFFF
##142A621.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013164
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #142a62;
/* rgb */ color: rgb(20, 42, 98);
/* oklch */ color: oklch(30.4% 0.103 264.7);
Tailwind
colors: {
  custom: {
    50: '#5f638f',
    500: '#142a62',
    950: '#000000',
  },
}
SCSS
$custom: #142a62;
$custom-light: #5f638f;
$custom-dark: #000000;
JSON
{
  "hex": "#142a62",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 98
  },
  "hsl": {
    "h": 223.077,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30439,
    "c": 0.10331,
    "h": 264.7
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#142A62
secondary
#997E38
accent
#B93FE9
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #142A62

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

Preview Lab → · Contrast checker → · Palette generator →

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