#142774#142774

#142774 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.134 H 267.1°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#142774
RGBrgb(20, 39, 116)
HSLhsl(228, 71%, 27%)
HSVhsv(228, 83%, 45%)
CMYKcmyk(82.8%, 66.4%, 0%, 54.5%)
CIE-LABlab(19.48, 23.37, -46.22)
CIE-LCHlch(19.48, 51.79, 296.82°)
OKLaboklab(31.49% -0.0067 -0.1337)
OKLCHoklch(31.49% 0.134 267.1)
XYZxyz(4.1653, 2.8602, 16.8522)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142774 #746114
analogous
#145774 #142774 #311474
triadic
#142774 #741427 #277414
tetradic
#142774 #741457 #746114 #147431
square
#142774 #741457 #746114 #147431
split-complementary
#142774 #743114 #577414
monochromatic
#05091A #0B1540 #142774 #1D39A8 #284CDA

Accessibility & contrast

On white

13.36
#142774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #142774
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142774#FFFFFF#000000##FFFFFF
##1427741.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #142774;
/* rgb */ color: rgb(20, 39, 116);
/* oklch */ color: oklch(31.5% 0.134 267.1);
Tailwind
colors: {
  custom: {
    50: '#64609d',
    500: '#142774',
    950: '#000000',
  },
}
SCSS
$custom: #142774;
$custom-light: #64609d;
$custom-dark: #000000;
JSON
{
  "hex": "#142774",
  "rgb": {
    "r": 20,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 228.125,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31487,
    "c": 0.13392,
    "h": 267.1
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#142774
secondary
#AA943A
accent
#CA3AED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #142774

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

Preview Lab → · Contrast checker → · Palette generator →

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