#142772#142772

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

Color values

HEX#142772
RGBrgb(20, 39, 114)
HSLhsl(228, 70%, 26%)
HSVhsv(228, 82%, 45%)
CMYKcmyk(82.5%, 65.8%, 0%, 55.3%)
CIE-LABlab(19.28, 22.56, -45.24)
CIE-LCHlch(19.28, 50.56, 296.50°)
OKLaboklab(31.29% -0.0066 -0.1309)
OKLCHoklch(31.29% 0.131 267.1)
XYZxyz(4.0502, 2.8142, 16.2461)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142772 #725F14
analogous
#145672 #142772 #301472
triadic
#142772 #721427 #277214
tetradic
#142772 #721456 #725F14 #147230
square
#142772 #721456 #725F14 #147230
split-complementary
#142772 #723014 #567214
monochromatic
#05091A #0B153E #142772 #1D39A6 #274BD9

Accessibility & contrast

On white

13.44
#142772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#142772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142772
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142772#FFFFFF#000000##FFFFFF
##1427721.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142772;
/* rgb */ color: rgb(20, 39, 114);
/* oklch */ color: oklch(31.3% 0.131 267.1);
Tailwind
colors: {
  custom: {
    50: '#63609b',
    500: '#142772',
    950: '#000000',
  },
}
SCSS
$custom: #142772;
$custom-light: #63609b;
$custom-dark: #000000;
JSON
{
  "hex": "#142772",
  "rgb": {
    "r": 20,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 227.872,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31287,
    "c": 0.13107,
    "h": 267.1
  },
  "luminance": 0.02815
}

Semantic roles & 50–950 ramp

primary
#142772
secondary
#A89239
accent
#C93BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142772

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

Preview Lab → · Contrast checker → · Palette generator →

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