#142781#142781

#142781 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.152 H 267.2°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#142781
RGBrgb(20, 39, 129)
HSLhsl(230, 73%, 29%)
HSVhsv(230, 84%, 51%)
CMYKcmyk(84.5%, 69.8%, 0%, 49.4%)
CIE-LABlab(20.77, 28.56, -52.38)
CIE-LCHlch(20.77, 59.66, 298.60°)
OKLaboklab(32.83% -0.0073 -0.1517)
OKLCHoklch(32.83% 0.152 267.2)
XYZxyz(4.9751, 3.1841, 21.1170)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142781 #816E14
analogous
#145E81 #142781 #381481
triadic
#142781 #811427 #278114
tetradic
#142781 #81145E #816E14 #148138
square
#142781 #81145E #816E14 #148138
split-complementary
#142781 #813814 #5E8114
monochromatic
#04081A #0C174C #142781 #1C37B6 #304FDF

Accessibility & contrast

On white

12.83
#142781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#142781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142781
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142781#FFFFFF#000000##FFFFFF
##1427811.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #142781;
/* rgb */ color: rgb(20, 39, 129);
/* oklch */ color: oklch(32.8% 0.152 267.2);
Tailwind
colors: {
  custom: {
    50: '#6861a7',
    500: '#142781',
    950: '#000000',
  },
}
SCSS
$custom: #142781;
$custom-light: #6861a7;
$custom-dark: #000000;
JSON
{
  "hex": "#142781",
  "rgb": {
    "r": 20,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 229.541,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32828,
    "c": 0.15193,
    "h": 267.2
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#142781
secondary
#B6A13B
accent
#D038F0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142781

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

Preview Lab → · Contrast checker → · Palette generator →

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