#142A74#142A74

#142A74 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.130 H 266.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#142A74
RGBrgb(20, 42, 116)
HSLhsl(226, 71%, 27%)
HSVhsv(226, 83%, 45%)
CMYKcmyk(82.8%, 63.8%, 0%, 54.5%)
CIE-LABlab(20.30, 21.24, -44.86)
CIE-LCHlch(20.30, 49.64, 295.33°)
OKLaboklab(32.1% -0.0086 -0.1297)
OKLCHoklch(32.1% 0.13 266.2)
XYZxyz(4.2677, 3.0651, 16.8863)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A74 #745E14
analogous
#145A74 #142A74 #2E1474
triadic
#142A74 #74142A #2A7414
tetradic
#142A74 #74145A #745E14 #14742E
square
#142A74 #74145A #745E14 #14742E
split-complementary
#142A74 #742E14 #5A7414
monochromatic
#05091A #0B1740 #142A74 #1D3DA8 #2851DA

Accessibility & contrast

On white

13.02
#142A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#142A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A74
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A74#FFFFFF#000000##FFFFFF
##142A741.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #142a74;
/* rgb */ color: rgb(20, 42, 116);
/* oklch */ color: oklch(32.1% 0.130 266.2);
Tailwind
colors: {
  custom: {
    50: '#64639d',
    500: '#142a74',
    950: '#000000',
  },
}
SCSS
$custom: #142a74;
$custom-light: #64639d;
$custom-dark: #000000;
JSON
{
  "hex": "#142a74",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 226.25,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.321,
    "c": 0.13002,
    "h": 266.2
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#142A74
secondary
#AA903A
accent
#C43AED
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142A74

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

Preview Lab → · Contrast checker → · Palette generator →

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