#142A7B#142A7B

#142A7B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.140 H 266.5°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#142A7B
RGBrgb(20, 42, 123)
HSLhsl(227, 72%, 28%)
HSVhsv(227, 84%, 48%)
CMYKcmyk(83.7%, 65.9%, 0%, 51.8%)
CIE-LABlab(20.96, 24.09, -48.26)
CIE-LCHlch(20.96, 53.94, 296.53°)
OKLaboklab(32.79% -0.0086 -0.1397)
OKLCHoklch(32.79% 0.14 266.5)
XYZxyz(4.6904, 3.2342, 19.1121)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142A7B #7B6514
analogous
#145E7B #142A7B #31147B
triadic
#142A7B #7B142A #2A7B14
tetradic
#142A7B #7B145E #7B6514 #147B31
square
#142A7B #7B145E #7B6514 #147B31
split-complementary
#142A7B #7B3114 #5E7B14
monochromatic
#04091A #0B1846 #142A7B #1D3CB0 #2D52DD

Accessibility & contrast

On white

12.75
#142A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#142A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142A7B
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142A7B#FFFFFF#000000##FFFFFF
##142A7B1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #142a7b;
/* rgb */ color: rgb(20, 42, 123);
/* oklch */ color: oklch(32.8% 0.140 266.5);
Tailwind
colors: {
  custom: {
    50: '#6663a2',
    500: '#142a7b',
    950: '#000000',
  },
}
SCSS
$custom: #142a7b;
$custom-light: #6663a2;
$custom-dark: #000000;
JSON
{
  "hex": "#142a7b",
  "rgb": {
    "r": 20,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 227.184,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32788,
    "c": 0.13996,
    "h": 266.5
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#142A7B
secondary
#B1973A
accent
#C839EF
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #142A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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