#142981#142981

#142981 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.150 H 266.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#142981
RGBrgb(20, 41, 129)
HSLhsl(228, 73%, 29%)
HSVhsv(228, 84%, 51%)
CMYKcmyk(84.5%, 68.2%, 0%, 49.4%)
CIE-LABlab(21.28, 27.19, -51.54)
CIE-LCHlch(21.28, 58.27, 297.82°)
OKLaboklab(33.2% -0.0083 -0.1493)
OKLCHoklch(33.2% 0.15 266.8)
XYZxyz(5.0425, 3.3190, 21.1395)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142981 #816C14
analogous
#146081 #142981 #361481
triadic
#142981 #811429 #298114
tetradic
#142981 #811460 #816C14 #148136
square
#142981 #811460 #816C14 #148136
split-complementary
#142981 #813614 #608114
monochromatic
#04081A #0C184C #142981 #1C3AB6 #3052DF

Accessibility & contrast

On white

12.62
#142981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#142981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142981
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142981#FFFFFF#000000##FFFFFF
##1429811.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142981;
/* rgb */ color: rgb(20, 41, 129);
/* oklch */ color: oklch(33.2% 0.150 266.8);
Tailwind
colors: {
  custom: {
    50: '#6762a6',
    500: '#142981',
    950: '#000000',
  },
}
SCSS
$custom: #142981;
$custom-light: #6762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#142981",
  "rgb": {
    "r": 20,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 228.44,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33202,
    "c": 0.14951,
    "h": 266.8
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#142981
secondary
#B69E3B
accent
#CC38F0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142981

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

Preview Lab → · Contrast checker → · Palette generator →

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