#142172#142172

#142172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.1% C 0.139 H 268.7°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#142172
RGBrgb(20, 33, 114)
HSLhsl(232, 70%, 26%)
HSVhsv(232, 82%, 45%)
CMYKcmyk(82.5%, 71.1%, 0%, 55.3%)
CIE-LABlab(17.70, 26.75, -47.85)
CIE-LCHlch(17.70, 54.82, 299.21°)
OKLaboklab(30.12% -0.0031 -0.1386)
OKLCHoklch(30.12% 0.139 268.7)
XYZxyz(3.8686, 2.4509, 16.1855)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142172 #726514
analogous
#145072 #142172 #361472
triadic
#142172 #721421 #217214
tetradic
#142172 #721450 #726514 #147236
square
#142172 #721450 #726514 #147236
split-complementary
#142172 #723614 #507214
monochromatic
#05081A #0B123E #142172 #1D30A6 #2740D9

Accessibility & contrast

On white

14.09
#142172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#142172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142172
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142172#FFFFFF#000000##FFFFFF
##1421721.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #142172;
/* rgb */ color: rgb(20, 33, 114);
/* oklch */ color: oklch(30.1% 0.139 268.7);
Tailwind
colors: {
  custom: {
    50: '#645c9b',
    500: '#142172',
    950: '#000000',
  },
}
SCSS
$custom: #142172;
$custom-light: #645c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#142172",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 231.702,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30122,
    "c": 0.13861,
    "h": 268.7
  },
  "luminance": 0.02451
}

Semantic roles & 50–950 ramp

primary
#142172
secondary
#A89939
accent
#D43BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #142172

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

Preview Lab → · Contrast checker → · Palette generator →

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