#142E8A#142E8A

#142E8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.156 H 265.9°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#142E8A
RGBrgb(20, 46, 138)
HSLhsl(227, 75%, 31%)
HSVhsv(227, 86%, 54%)
CMYKcmyk(85.5%, 66.7%, 0%, 45.9%)
CIE-LABlab(23.46, 27.33, -53.59)
CIE-LCHlch(23.46, 60.16, 297.02°)
OKLaboklab(35.08% -0.0112 -0.1552)
OKLCHoklch(35.08% 0.156 265.9)
XYZxyz(5.8513, 3.9370, 24.4913)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142E8A #8A7014
analogous
#14698A #142E8A #35148A
triadic
#142E8A #8A142E #2E8A14
tetradic
#142E8A #8A1469 #8A7014 #148A35
square
#142E8A #8A1469 #8A7014 #148A35
split-complementary
#142E8A #8A3514 #698A14
monochromatic
#050A1F #0C1C55 #142E8A #1C40BF #365CE2

Accessibility & contrast

On white

11.75
#142E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#142E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142E8A
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142E8A#FFFFFF#000000##FFFFFF
##142E8A1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #142e8a;
/* rgb */ color: rgb(20, 46, 138);
/* oklch */ color: oklch(35.1% 0.156 265.9);
Tailwind
colors: {
  custom: {
    50: '#6a66ad',
    500: '#142e8a',
    950: '#000000',
  },
}
SCSS
$custom: #142e8a;
$custom-light: #6a66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#142e8a",
  "rgb": {
    "r": 20,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 226.78,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35075,
    "c": 0.15565,
    "h": 265.9
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#142E8A
secondary
#BEA13C
accent
#C836F1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #142E8A

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

Preview Lab → · Contrast checker → · Palette generator →

#142E8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva