#142374#142374

#142374 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.139 H 268.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#142374
RGBrgb(20, 35, 116)
HSLhsl(231, 71%, 27%)
HSVhsv(231, 83%, 45%)
CMYKcmyk(82.8%, 69.8%, 0%, 54.5%)
CIE-LABlab(18.41, 26.17, -47.96)
CIE-LCHlch(18.41, 54.63, 298.62°)
OKLaboklab(30.71% -0.0044 -0.1389)
OKLCHoklch(30.71% 0.139 268.2)
XYZxyz(4.0408, 2.6113, 16.8107)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142374 #746514
analogous
#145374 #142374 #351474
triadic
#142374 #741423 #237414
tetradic
#142374 #741453 #746514 #147435
square
#142374 #741453 #746514 #147435
split-complementary
#142374 #743514 #537414
monochromatic
#05081A #0B1340 #142374 #1D33A8 #2844DA

Accessibility & contrast

On white

13.79
#142374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#142374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142374
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142374#FFFFFF#000000##FFFFFF
##1423741.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #142374;
/* rgb */ color: rgb(20, 35, 116);
/* oklch */ color: oklch(30.7% 0.139 268.2);
Tailwind
colors: {
  custom: {
    50: '#645e9d',
    500: '#142374',
    950: '#000000',
  },
}
SCSS
$custom: #142374;
$custom-light: #645e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#142374",
  "rgb": {
    "r": 20,
    "g": 35,
    "b": 116
  },
  "hsl": {
    "h": 230.625,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30709,
    "c": 0.13894,
    "h": 268.2
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#142374
secondary
#AA993A
accent
#D13AED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #142374

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

Preview Lab → · Contrast checker → · Palette generator →

#142374 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva