#142A71#142A71

#142A71 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.126 H 266.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#142A71
RGBrgb(20, 42, 113)
HSLhsl(226, 70%, 26%)
HSVhsv(226, 82%, 44%)
CMYKcmyk(82.3%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.03, 20.00, -43.38)
CIE-LCHlch(20.03, 47.77, 294.75°)
OKLaboklab(31.81% -0.0086 -0.1254)
OKLCHoklch(31.81% 0.126 266.1)
XYZxyz(4.0960, 2.9964, 15.9821)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A71 #715B14
analogous
#145871 #142A71 #2C1471
triadic
#142A71 #71142A #2A7114
tetradic
#142A71 #711458 #715B14 #14712C
square
#142A71 #711458 #715B14 #14712C
split-complementary
#142A71 #712C14 #587114
monochromatic
#050A1A #0B173D #142A71 #1D3DA5 #2751D9

Accessibility & contrast

On white

13.13
#142A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#142A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A71
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A71#FFFFFF#000000##FFFFFF
##142A711.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #142a71;
/* rgb */ color: rgb(20, 42, 113);
/* oklch */ color: oklch(31.8% 0.126 266.1);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#142a71',
    950: '#000000',
  },
}
SCSS
$custom: #142a71;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#142a71",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 225.806,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31812,
    "c": 0.12569,
    "h": 266.1
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#142A71
secondary
#A78D39
accent
#C33BED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142A71

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

Preview Lab → · Contrast checker → · Palette generator →

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