#142A72#142A72

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

Color values

HEX#142A72
RGBrgb(20, 42, 114)
HSLhsl(226, 70%, 26%)
HSVhsv(226, 82%, 45%)
CMYKcmyk(82.5%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.12, 20.41, -43.88)
CIE-LCHlch(20.12, 48.39, 294.95°)
OKLaboklab(31.91% -0.0086 -0.1268)
OKLCHoklch(31.91% 0.127 266.1)
XYZxyz(4.1527, 3.0191, 16.2802)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A72 #725C14
analogous
#145972 #142A72 #2D1472
triadic
#142A72 #72142A #2A7214
tetradic
#142A72 #721459 #725C14 #14722D
square
#142A72 #721459 #725C14 #14722D
split-complementary
#142A72 #722D14 #597214
monochromatic
#050A1A #0B173E #142A72 #1D3DA6 #2751D9

Accessibility & contrast

On white

13.09
#142A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142A72
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A72#FFFFFF#000000##FFFFFF
##142A721.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #142a72;
/* rgb */ color: rgb(20, 42, 114);
/* oklch */ color: oklch(31.9% 0.127 266.1);
Tailwind
colors: {
  custom: {
    50: '#63639b',
    500: '#142a72',
    950: '#000000',
  },
}
SCSS
$custom: #142a72;
$custom-light: #63639b;
$custom-dark: #000000;
JSON
{
  "hex": "#142a72",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 225.957,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31907,
    "c": 0.12714,
    "h": 266.1
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #142A72

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

Preview Lab → · Contrast checker → · Palette generator →

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