#142881#142881

#142881 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.151 H 267.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#142881
RGBrgb(20, 40, 129)
HSLhsl(229, 73%, 29%)
HSVhsv(229, 84%, 51%)
CMYKcmyk(84.5%, 69%, 0%, 49.4%)
CIE-LABlab(21.02, 27.88, -51.96)
CIE-LCHlch(21.02, 58.96, 298.21°)
OKLaboklab(33.01% -0.0078 -0.1505)
OKLCHoklch(33.01% 0.151 267)
XYZxyz(5.0083, 3.2507, 21.1281)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142881 #816D14
analogous
#145F81 #142881 #371481
triadic
#142881 #811428 #288114
tetradic
#142881 #81145F #816D14 #148137
square
#142881 #81145F #816D14 #148137
split-complementary
#142881 #813714 #5F8114
monochromatic
#04081A #0C184C #142881 #1C38B6 #3050DF

Accessibility & contrast

On white

12.73
#142881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#142881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142881
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142881#FFFFFF#000000##FFFFFF
##1428811.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #142881;
/* rgb */ color: rgb(20, 40, 129);
/* oklch */ color: oklch(33.0% 0.151 267.0);
Tailwind
colors: {
  custom: {
    50: '#6862a7',
    500: '#142881',
    950: '#000000',
  },
}
SCSS
$custom: #142881;
$custom-light: #6862a7;
$custom-dark: #000000;
JSON
{
  "hex": "#142881",
  "rgb": {
    "r": 20,
    "g": 40,
    "b": 129
  },
  "hsl": {
    "h": 228.991,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33014,
    "c": 0.15072,
    "h": 267
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#142881
secondary
#B69F3B
accent
#CE38F0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142881

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

Preview Lab → · Contrast checker → · Palette generator →

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