#142870#142870

#142870 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.127 H 266.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#142870
RGBrgb(20, 40, 112)
HSLhsl(227, 70%, 26%)
HSVhsv(227, 82%, 44%)
CMYKcmyk(82.1%, 64.3%, 0%, 56.1%)
CIE-LABlab(19.37, 21.02, -43.81)
CIE-LCHlch(19.37, 48.59, 295.64°)
OKLaboklab(31.3% -0.0073 -0.1267)
OKLCHoklch(31.3% 0.127 266.7)
XYZxyz(3.9709, 2.8357, 15.6642)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142870 #705C14
analogous
#145670 #142870 #2E1470
triadic
#142870 #701428 #287014
tetradic
#142870 #701456 #705C14 #14702E
square
#142870 #701456 #705C14 #14702E
split-complementary
#142870 #702E14 #567014
monochromatic
#05091A #0B153C #142870 #1D3BA4 #274DD8

Accessibility & contrast

On white

13.40
#142870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#142870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142870
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142870#FFFFFF#000000##FFFFFF
##1428701.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #142870;
/* rgb */ color: rgb(20, 40, 112);
/* oklch */ color: oklch(31.3% 0.127 266.7);
Tailwind
colors: {
  custom: {
    50: '#63619a',
    500: '#142870',
    950: '#000000',
  },
}
SCSS
$custom: #142870;
$custom-light: #63619a;
$custom-dark: #000000;
JSON
{
  "hex": "#142870",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 226.957,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31295,
    "c": 0.12688,
    "h": 266.7
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#142870
secondary
#A68F39
accent
#C63BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142870

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

Preview Lab → · Contrast checker → · Palette generator →

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