#142170#142170

#142170 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.136 H 268.7°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#142170
RGBrgb(20, 33, 112)
HSLhsl(232, 70%, 26%)
HSVhsv(232, 82%, 44%)
CMYKcmyk(82.1%, 70.5%, 0%, 56.1%)
CIE-LABlab(17.49, 25.96, -46.90)
CIE-LCHlch(17.49, 53.61, 298.97°)
OKLaboklab(29.91% -0.003 -0.1358)
OKLCHoklch(29.91% 0.136 268.7)
XYZxyz(3.7560, 2.4059, 15.5925)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142170 #706314
analogous
#144F70 #142170 #351470
triadic
#142170 #701421 #217014
tetradic
#142170 #70144F #706314 #147035
square
#142170 #70144F #706314 #147035
split-complementary
#142170 #703514 #4F7014
monochromatic
#05081A #0B123C #142170 #1D30A4 #2740D8

Accessibility & contrast

On white

14.18
#142170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#142170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142170
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142170#FFFFFF#000000##FFFFFF
##1421701.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #142170;
/* rgb */ color: rgb(20, 33, 112);
/* oklch */ color: oklch(29.9% 0.136 268.7);
Tailwind
colors: {
  custom: {
    50: '#635c9a',
    500: '#142170',
    950: '#000000',
  },
}
SCSS
$custom: #142170;
$custom-light: #635c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#142170",
  "rgb": {
    "r": 20,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 231.522,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29908,
    "c": 0.13582,
    "h": 268.7
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#142170
secondary
#A69739
accent
#D33BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #142170

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

Preview Lab → · Contrast checker → · Palette generator →

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